qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] QPushButton - remain down...

Subject: Re: [Qt-interest] QPushButton - remain down...
From: Dan White
Date: Tue, 2 Mar 2010 17:56:01 +0000 UTC
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@xxxxxxxxx> 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@xxxxxxxxxxxxx
> http://lists.trolltech.com/mailman/listinfo/qt-interest


_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest
<Prev in Thread] Current Thread [Next in Thread>