Unsolved DockWidget resize error.
-
DockWidget has a QWidget named A as addWidget.
A QWidget has a layout with setLayout, which has a QGroupBox with QVBoxLayout.
This DockWidget is created by clicking on Item of QGraphicsView and I want to adjust the default Width to about 300.
DockWidget.resize (300, height) does not change. How do I change it?
-
@Pada_ Is your DockWidget in a layout?
-
@jsulm
There is no layout outside DockWidget.The DockWidget has a Widget, and the Widget is setLayout.
-
@Pada_ Then you should show the code.