问题标签 [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.
python - 如何将单列 QVBoxLayout 修改为多列?
我有一列自动生成的按钮,如果有太多,可以挤压窗口中的 UI 元素。因此,我想通过以下方式自动将单列按钮(名义上在QVBoxLayout
称为内部的按钮)self.main_layout
转换为多列事件:
- 从中删除按钮
self.main_layout
QVBoxLayout
将它们添加到由s表示的交替新列- 更改
self.main_layout
为QHBoxLayout
- 将新列添加到此布局
我的尝试只是导致按钮停留在单列中,但现在甚至不调整大小以填充QSplitter
它们占据的框架:
我在这里做错了什么明显的事情吗?
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