How to center a QToolButton in QToolBar?
-
Hi,
I add QToolButton into vertical QToolBar (using addWidget() method) and it is aligned to the left.
How can I aligned it to the center??Picture:
Top I have
Bottom I need
!http://www.stud.fit.vutbr.cz/~xadami06/qt.png(qtoolbuttons)!In C++, Qt 5.0.1.
Thanks for quick answer! -
QAction is nothing more then a quick way to utilize the signal/slot methode. An other option is to remove the actions and in the constructor of the window set the signal / slots as needed.
Greetz