Qt-interest Archive, May 2008
stretch in QToolBar?
Message 1 in thread
I have a QToolBar with a handful of QActions in it, and would like to
have a QComboBox right aligned. First question is, is it truly the
case that it's impossible to add anything other than QActions to a
QToolBar in Designer? If not, I could not figure out how to do it.
Secondly, to do this I inserted an empty QWidget with its size policy
set to expanding before adding the QComboBox. This seems to work
perfectly except the margin between the right hand side of the
QComboBox and the edge of the QMainWindow is non-existent, whereas
there's a nice margin on the left side between the window and the
first QAction.
Is that expected? Should I just stuff another empty spacer widget in
there? Thanks!
Liam
--
[ signature omitted ]