Toolbars inside tabs

£可爱£侵袭症+ 提交于 2021-02-20 13:30:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!