Search code examples
c++user-interfaceqtqt4qtoolbar

How do I add controls other than buttons/actions to toolbars in Qt, such as text boxes and combo boxes?


From the screenshot featured on this page http://www.kde.gr.jp/~ichi/qt/designer-manual-3.html it seems like this functionality was available in Qt3. Was it removed in Qt4?


Solution

  • I don't believe you can do so from within Designer. You can add other widgets programmatically using QToolBar::addWidget().