PDA

View Full Version : how exclusive toolbutton in toolbar



irmakci
30th July 2008, 16:50
Hi,
My problem is to set up toolbuttons as exlusive in the toolbar for my application. I know that I can make this with QAction objects(and with help of setMenu() ).

I can't use buttongroup class, because it does not inherit from QWidget but QObject.
But I want to use QToolButton as exclusive button instead of QAction.
Regards
Thanks in advance

aamer4yu
30th July 2008, 18:08
Did you have alook at QActionGroup ??

irmakci
30th July 2008, 22:33
yes. I think I will use qaction. But I want to say exactly, I also want to use a QToolButton as QAction. And in some way, QButton Group like QActionGroup.
Thanks