我是 Qt Designer 的新手,我正在开发一个主窗口,我希望在右侧有两个列表小部件,布置在垂直拆分器中,然后在左侧有一个较大的文本浏览器小部件,然后是本身与列表小部件位于拆分器中。因此,列表小部件的相对大小可以垂直调整大小,并且文本浏览器和其他两个小部件之间的水平空间也可以调整大小。
我尝试首先将两个小部件放在垂直拆分器中的右侧,然后选择布局,如下所示:
问题是,现在两个列表小部件位于拆分器布局中,我无法将该布局添加到任何其他更大的布局中。所有选项均显示为灰色。如果我只进行标准的水平或垂直布局,则可以用较小的布局制作更大的布局。那么使用分割器布局时如何做到这一点呢?谢谢!
I'm new to Qt Designer, and I am working on a main window where I want to have two list widgets off to the right, laid out in a vertical splitter, and then a larger text browser widget to the left, which is then itself in a splitter with the list widgets. So the relative sizes of the list widgets can be resized vertically, and the horizontal space between the text browser and the other two widgets can also be resized.
I tried first laying out the two widgets on the right in a vertical splitter, and then selecting the layout, like so:
The problem is, now that the two list widgets are in the splitter layout, I can't then add that layout to any other larger layouts. All the options appear grayed out. If I just do a standard horizontal or vertical layout, it is possible to then make larger layouts out of smaller ones. So how is this to be done when using splitter layouts? Thanks!
发布评论
评论(1)
看起来您正在选择两个
ListWidgets
而不是splitter
。要组合布局,您需要选择一个包含ListWidgets
的splitter
,然后选择TextBrowser
。在这种情况下,在分割器中水平布局
将可用。这里视频演示 (1.25 MB)
Look's like you are selecting two
ListWidgets
insteadsplitter
. To combine layouts you need to select onesplitter
which containsListWidgets
and thenTextBrowser
. In this caseLay Out Horizontaly in splitter
will be available.Here video demonstration (1.25 MB)