Qt gui 创建、小部件调整大小
尽管我有多年的 MFC 编程经验,但我还是 Qt 开发的新手。我正在尝试创建一个可停靠小部件,并将一些控件放入停靠小部件(更准确地说是选项卡小部件)中。我的问题是停靠小部件内的选项卡小部件不会随父级一起调整大小。
我希望选项卡小部件填充停靠小部件的整个区域。是否可以在同一个 GUI 设计器中操作某些属性?
I am new to Qt development, even though I have years of MFC programming. I am trying to create a dockable widget and put some controls in the dock widget, a tab widget to be more precise. My problem is that the tab widget inside the dock widget doesn't resize along with the parent.
I'd like the tab widget to fill the entire area of the dock widget. Is it possible to manipulate some property in the same gui designer?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道我是否理解你的问题,但试试这个:单击 DockWidget 的任意位置(以及选项卡小部件之外),然后按红色箭头指示的按钮(它将是蓝色的)。是这样吗?
这样:
变成这样:
I don't know If I understood your question, but try this: click anywhere the DockWidget (and outside the tab widget) and press the button idicated by the red arrow (it will be blue). Is that it?
This:
Becomes this: