当前位置: 代码迷 >> QT开发 >> qt中clicked()有关问题
  详细解决方案

qt中clicked()有关问题

热度:344   发布时间:2016-04-25 05:13:14.0
qt中clicked()问题
Qt中clicked()与clicked(bool)有什么区别?

------解决方案--------------------
This signal is emitted when the button is activated (i.e. pressed down then released while the mouse cursor is inside the button), when the shortcut key is typed, or when 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.
楼主手册里面有很详细的解释
------解决方案--------------------
我想楼主迷糊的bool值怎么起作用,初次接触一般都会有这个问题。
转换状态,比如可以打钩,选择,或者压下