|
2楼可以么?
如果是radiobutton或者checkbox有方法可以判断。
如果是qpushbutton就不知道怎么判断了。
或者这样可以试试:
checked : bool
This property holds whether the button is checked.
Only checkable buttons can be checked. By default, the button is unchecked.
Access functions:
bool isChecked () const
void setChecked ( bool )
Notifier signal:
void toggled ( bool checked ) |
|