Finding problems
I want to make a tomato clock software and learn QT by the way. But when I did it, I found that toggled could not trigger setvisible (). After comparing the source code of C + + GUI QT4 programming, I found that it was a detail problem about QPushButton, which was not clear.
The effect you want to complete is as follows:
Solution
QPushButton must be checkable and must be selected when designing with designer.
The specific operation is as follows:
Problem exploration
By default, checkable is not selected, and button is the trigger button by default. When you press it, it will pop up immediately
After checkable is selected, the button becomes a toggle button, which can have two states: Press/pop. This is why the state of the task list button is different in the two images
————————————————
Link to the original text: https://blog.csdn.net/humanking7/article/details/44095283
Read More:
- ORA-04098: trigger ‘SYS.GGS_DDL_TRIGGER_BEFORE’ is invalid and failed re-validation
- Springboot integrates quartz timed task trigger_ State error resolution
- Unity about meshcollider collider cannot trigger collision event
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem
- Zookeeper connection timeout problem, and refused to connect to solve the problem
- To solve the problem of failed to load: data in HTML5 game running rmmv locally/ actors.json problem
- Solve the problem of available for offline mode in Android studio compilation
- How to solve the problem of error 15: file not found when Linux starts
- Install apache2.4 on windows to solve the problem of the requested operation has failed
- Solve the problem that TeamViewer software prompts that the trial period has expired and cannot be operated remotely
- Solve the problem that dbvisualizer cannot connect to mysql8
- Solve the problem of Chinese garbled code of actibpm plug-in in idea
- Django. Using f () to solve the competition problem
- C language — to solve the problem of program flashback when programming (in VS)
- Solve the problem of VC6.0 open crash and OpenGL glut32.lib library
- Solve the make: * * [install recursive] error 1 problem
- Solve CONDA’s “solving environment: failed” problem
- Transfer: completely solve the problem that the browser home page is tampered by deleting the script file
- Solve the problem of prompt “failed to sync branch” when using Git
- Solve the problem that the connection between ADB and nocturnal God cannot be solved