问题
Is it possible to add a tool bar inside QWidget
that is placed inside a tab (in QTabWidget
) ?
The idea is to put a separate tool bar for each tab.
It seems that tool bars can only be placed inside QMainWindow
.
回答1:
QToolBar
is an ordinary QWidget
, you can add it to a layout.
来源:https://stackoverflow.com/questions/5227889/toolbars-inside-tabs