Is it possible to change checked window's contens (caption and icon) regarding to this button check state? I mean, how do I rewrite non virtual slot to do this?
Is it possible to change checked window's contens (caption and icon) regarding to this button check state? I mean, how do I rewrite non virtual slot to do this?
Qt 5.3 Opensource & Creator 3.1.2
Ok, here we go:
The checked button term is used in qt QPushButton documentation and it refers to a button, which supports toggle button. And here is my problem, since i do not know how to make a code that will:
1) in button state ON set a predefined text and icon
2) in button state OFF set a different predefined text and icon
Qt 5.3 Opensource & Creator 3.1.2
Construct a QIcon with two pixmaps, one for each state. To update button text, you can simply connect to toggled(bool) signal and set the button text in the corresponding slot, or you can reimplement for example QAbstractButton::checkStateSet() and change the button text there.
J-P Nurmi
Bookmarks