At Visual Basic 6 I can create several option buttons, if one pressed, it is in down state, press it again, it pops up.
Is there a way in QT can do this?
At Visual Basic 6 I can create several option buttons, if one pressed, it is in down state, press it again, it pops up.
Is there a way in QT can do this?
A QToolButton will do what you want I guess.
Hi,
Set the 'checkable' property. Even normal buttons (like a QPushButton) can have this property set.
Regards,
Marc
yyiu002 (4th October 2010)
Quick note to the OP, you can use eitheror to do this. I guess some properties are so frequently useful that convenience functions have been added.Qt Code:
To copy to clipboard, switch view to plain text mode
the checkable property is definitely right
One more question, is it possible to have text automatic wrapped to next line if button is narrowed.
Found how to do it, add "\n" in between text.
Bookmarks