选项卡内的工具栏 [英] Toolbars inside tabs

查看:44
本文介绍了选项卡内的工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 QWidget 内添加一个工具栏,该工具栏位于选项卡内(在 QTabWidget 中)?这个想法是为每个选项卡放置一个单独的工具栏.

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.

工具栏好像只能放在QMainWindow里面.

It seems that tool bars can only be placed inside QMainWindow.

推荐答案

QToolBar 是一个普通的QWidget,你可以将其添加到布局中.

QToolBar is an ordinary QWidget, you can add it to a layout.

这篇关于选项卡内的工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆