1

I have a QToolBar and QMenuBar.

The QMenuBar has only one menu item (as I made it), so the line of QMenuBar is almost blank.

I want to make the QMenuBar to take part of the QToolbar, because it has only one item. Is there any option to do this?

Sorry if the question is so simple. I am a beginner of Qt.

You can see my used code here: http://doc.qt.io/qt-5/qtwebkitexamples-webkitwidgets-browser-example.html I downloaded the example and now, I am modifying it.

Thank you.

MM PP
  • 4,050
  • 9
  • 35
  • 61

1 Answers1

1

You can add a QToolButton to the toolbar and add drop-down menu to it via QToolButton::setMenu if necessary.

Pavel Strakhov
  • 39,123
  • 5
  • 88
  • 127