Quote Originally Posted by di_zou View Post
Since a QSpacerItem does not inherit QWidget, I can't use addWidget(). So how do I add a spacer to a toolbar?
You can use QToolBar's addSeparator() or insertSeparator().