QtDesigner布局混乱
我已经使用 QtDesigner 一段时间了,但我找不到适合我所需布局的真正解决方案。
这就是我的目标,类似 Eclipse RCP 的布局:
五个可拖放的小部件可以重新排列等等(所以 Dockwidgets)。这就是上面屏幕截图中发生的情况,我只是将五个 Dockwidgets 拉入主窗口并用项目填充它们。但问题是 Dockwidgets 只能吸附到主窗口的边缘,并为 CentralWidget(您在中间看到的)留出空间。有没有什么方法可以将包含的小部件添加到中心并用 DockWidgets 填充它?
旁注:在设计器中做这样的事情是否可行?我明白为什么这个程序很有用,因为 GUI 可以非常快地设置和更改,但我感觉在确切的外观上被剥夺了任何权力。我有点渴望(尝试)手工编写 GUI,因为我感觉很无能为力! :-)
PS: 截图如何缩放?看起来太大了
I've been playing around with QtDesigner for some time now, but I can't find a real solution for my desired layout.
Here's what I'm aiming for, kind of an Eclipse RCP-like layout:
Five drag&dropable widgets which can be rearranged and whatnot (so Dockwidgets). Thats what happend in above screenshot, I just pulled five Dockwidgets into the Mainwindow and populated them with Items. But the problem is that Dockwidgets only snap to the edges of the Mainwindow, and leave space to CentralWidget, which you see in the middle. Is there some way to add a containing widget to the center and fill it with DockWidgets?
On a side note: Is it feasable to do something like this in the Designer? I see why this program is useful, as GUIs can be set up and changed extremly fast, but I feel like stripped of any power on the exact look. I'm kinda itching to (attempt to) write the GUI by hand, because I'm feeling so powerless! :-)
P.S.:How can the screenshot be scaled? It seems overly huge
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是没有。正如文档中所述
Unfortunately no. As it says in the documentation