Home > other >  About clicked (bool) signal in the bool...
About clicked (bool) signal in the bool...

Time:09-25

I had always thought that is the time to press the button clicked (bool), toggled (bool), and other similar these signals sent by Boolean value is in the true or false before switch in turn but today I made a small experiment seems to be clicked (bool) signal no matter how much I press the pushbutton it sends is false under please advice o...

CodePudding user response:

Void QAbstractButton: : clicked (bool checked=false) [being] This signal is emitted when the button is activated (i.e. for pressed down then released while the mouse cursor is inside the button), the when the shortcut key is typed, or when the click () or animateClick () is called. Notably, This signal is not emitted if you call setDown (), setChecked () or toggle (). If the button is checkable, checked is true if the button is checked, or false if the button is unchecked.

CodePudding user response:

Thank you upstairs! And a question has been very vague: checkable properties affect the control?

CodePudding user response:

Whether can convert state can check, for example, select, or press down

CodePudding user response:

refer to the second floor weixin_38088446 response:
thank upstairs! And a question has been very vague: checkable properties affect the control?

Upstairs is how to answer?
  • Related