I have to local two QToolbars at the top of the main window. The button in one ist aligned right-to-left.
Thank for the Help
I have to local two QToolbars at the top of the main window. The button in one ist aligned right-to-left.
Thank for the Help
Create a blank widget and set its horizontal size policy to QSizePolicy::Expanding. Add that widget before all the actions. This way, the widget will act like a spacer, making the rest of toolbuttons appear at the right side. For example:
Qt Code:
#include <QtGui> #include "mainwindow.h" { spacerWidget->setVisible(true); toolBar->addWidget(spacerWidget); toolBar->addAction(myAction); }To copy to clipboard, switch view to plain text mode
Oops! Sorry, I didn't realise you're talking about Qt 3.
nonetheless, thx
Bookmarks