Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
how to add a strech on a toolbar?
-
i want to add a strech to make the two button on the toolbar separate widely, one on the Left edge, and the other on the Right edge.
but i just find one API addSeparator, is there any way to do this?
thank you
-
Hi,
You could try inserting a "spacer" widget between your actions. The widget should have an expanding horizontal size policy.
Hope it helps
-
QSpacerItem?
it's not a widget, and can't use addWidget()
-
No, not a QSpacerItem, a standard QWidget with the size policy set as described