I want some of my toolbar actions appear left-bound and some right-bound. I Gtk I remember adding a stretchable (expandable) separator. How do I achieve that in Qt?
I u
You can use an empty widget with automatic expanding, it works like the spacers you can use in Qt Designer:
tb = my_toolbar; QWidget* empty = new QWidget(); empty->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred); tb->addWidget(empty); tb->addWidget(otherWidget);