[Qt-interest] QPushButton - remain down...
Dan White
ygor at comcast.net
Tue Mar 2 18:56:01 CET 2010
Did you try using the setCheckable() method on a QPushButton ?
Or make your own subclass that toggles a binary state each time it is pressed.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
----- BRM <bm_witness at yahoo.com> wrote:
> I have a series of items I am putting into a QToolBar so the user can select them during run.
> Presently I am using the QCheckBox, but it takes up a lot of room.
> Preferably, I'd like to have a QPushButton kind of widget that has two states: Up and Down.
> Looking through the documentation, I did notice that QPushButton has those states, but it does not seem to remain in those states.
>
> Am I missing something to enable this?
> Or am I going to need to subclass?
>
> Note: I'm presently using Qt 4.5 (4.5.1, 4.5.2).
>
> TIA,
>
> Ben
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list