Qt custom control (switch button)

Qt custom control (switch button) principle Source code operation result Children who have been exposed to the IOS system should be familiar with the switch button. They often encounter it in the settings. The sliding effect when switching is quite cool. Generally speaking, the switch button has two states: on and off. Next, we use […]

A turntable (music disk) made by Vue that rotates at a click. When you click to stop, it will slowly stop within a few seconds. Click the button again to rotate again.

Look at the effect first: Code: I will draw the main parts with red lines css:section: Source code: vue part: <template> <div class=”song-lyric”> <div> <div class=”type”> <div class=”right”> <div class=”right-center” :class=”{ ‘rotates’: isplay }”> <div> <img src=”//i2.wp.com/imagesone.oss-cn-beijing.aliyuncs.com/imagebishe/player_bar.png” class=”right-top” :class=”{rotated: isplay}”> </div> <div> <img src=”//i2.wp.com/imagesone.oss-cn-beijing.aliyuncs.com/imagebishe/disc.png” class=”tight-bottm” :style=”{ transform: ‘rotate(‘ + rotationAngle + ‘deg)’ }”> </div> </div> […]

WPF ToggleButton theme switching animation button

WPF ToggleButton theme switching animation button I imitate an effect in HTML that I saw recently. The general idea is like this in the article. I feel that it can be further refined. code show as below XAML: <UserControl x:Class=”WPFSwitch.AnimationSwitch” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″ xmlns:icon=”http://metro.mahapps.com/winfx/xaml/iconpacks” xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″ xmlns:local=”clr-namespace:WPFSwitch” mc:Ignorable=”d” x:Name=”root” ClipToBounds=”True” d:DesignHeight=”200″ d:DesignWidth=”600″> <UserControl.Resources> <local:HalfConverter x:Key=”CornerConverter”/> <local:HalfConverter […]

Long-term stay alarm design of nrf24l01 wireless control button music doorbell based on 51 microcontroller

1. Foreword In the past two years, the requirements and difficulty of graduation projects and graduation defenses have continued to increase. Traditional graduation projects lack innovation and highlights, and often fail to meet the requirements for graduation defenses. In the past two years, junior students and junior students have constantly told Senior Xiaohong to do […]

python selenium clicks a series of buttons in the table and outputs the pop-up content to csv

A practical example of python selenium, heavier than the demo, but not too complicated. The trick is summarized as follows: The address of the latest chromedriver is https://googlechromelabs.github.io/chrome-for-testing. This is very important, otherwise you will have to deal with annoying problems such as automatic chrome updates. Many download sources are a bit outdated. Use options […]

Qt control UI design QPushbutton, QToolButton, QMenu

Qt control UI design QPushbutton, QToolButton, QMenu Personal design QToolButton effect design effect running result Chapter1 Qt control UI design QPushbutton, QToolButton, QMenu 1.The relationship and difference between QPushbutton and QToolButton: 2.QMenu can cooperate with QPushbutton to make a drop-down menu 3. The function of clicking the button. The toolbutton theme is drawn with UI. […]

[zTree] Add different operation buttons to the node, and generate a pop-up window after clicking

zTree api documentation: https://www.treejs.cn/v3/api.php 1. Initialization tree configuration items const initZtreeSetting = () => {<!– –> const setting = {<!– –> view: {<!– –> addHoverDom: addHoverDom, // Display user-defined controls selectedMulti: false,//Whether multiple nodes are allowed to be selected at the same time, the default is true showIcon: true, //Whether to display the icon of […]

UGUI – Analyzing the UGUI framework from the perspective of Button (Part 2)

In the last article, we stopped at the search for PointerEventData data and traced it back to the PorcessMousePress() method. Finally, we found that the source of the data structure was constructed in the ProcessMouseEvent(int id) function. The source code is as follows 1Preliminary structure of PointerEventData data //StandaloneInputModule| void ProcessMouseEvent(int id) var mouseData = […]

Android ToggleButton, Switch, CheckBox, RadioButton controls

Table of Contents ToggleButton concept renderings Code Switch concept renderings CheckBox concept renderings Code RadioButton concept renderings Code ToggleButton Concept ToggleButton is a basic control in Android. It can switch between two states and is often used to represent functions such as switching and enabling/disabling. Some important features and usage of ToggleButton: Layout: In an […]