问题标签 [qvboxlayout]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
69 浏览

python - Set Can not setup between 2 QHBoxLayout on 1 QVBoxLayout

目前,我遇到的问题是当我运行它时只显示 QHVerticalRight,也许 QHVerticalLeft 被 QHVerticalRight 覆盖了。

这是示例代码:`

`

此图像描述了 layoutHorizo​​nLeft 和 layoutHorizo​​nRight 定义的位置:
此图像描述 layoutHorizo​​nLeft 和 layoutHorizo​​nRight 定义的位置

0 投票
1 回答
105 浏览

pyqt5 - BoxLayout 的 PyQt 框架

我现在已经被困了两个多小时,试图在我的 Boxlayout 周围放置一个框架/边框。

这是主要的最小 Main.py

要使程序代码正常工作,您需要 circle.py

因为我显然无法在这里说出我想要的图片:
因为我显然无法在这里说出我想要的图片

我想要 Displayvbox 周围的框架。Displayvbox 包含一些标签和两个圆圈。怎么可能做这个框架。这个我真的看不懂。。。。

0 投票
2 回答
138 浏览

python - 如何将单列 QVBoxLayout 修改为多列?

我有一列自动生成的按钮,如果有太多,可以挤压窗口中的 UI 元素。因此,我想通过以下方式自动将单列按钮(名义上在QVBoxLayout称为内部的按钮)self.main_layout转换为多列事件:

  • 从中删除按钮self.main_layout
  • QVBoxLayout将它们添加到由s表示的交替新列
  • 更改self.main_layoutQHBoxLayout
  • 将新列添加到此布局

我的尝试只是导致按钮停留在单列中,但现在甚至不调整大小以填充QSplitter它们占据的框架:

我在这里做错了什么明显的事情吗?

0 投票
2 回答
34 浏览

python - Window not opening inPyQT5 GUI

I am trying to create a GUI application using Pyqt5. The issue I am facing is that the code is running well but record window is not opening. I am attaching the whole code below and the snippet of the function which I am referring to. I have tried going through the whole code but haven't found any flaws in the same.

And the function is