Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set width of PySide.QtGui.QDockWidget in python
Ravi_exact last edited by
I'm completely new to python, i have a question with setting width of PySide.QtGui.QDockWidget in python.
I have MainWindow class in python which inherits QtGui.QMainWindow ( PySide ) and have added
one left dock widget with simple plot and
one right dock widget with simple plot and
embedded simple plot in central widget.
Now i have to set width of each dock window.
1.Left Dock widget should take 20% width of my screen
2.Central Widget should take 40% width of my screen.
3.Right Dock Window should take 40% width of my screen.
I can't use setFixedWidth,minimum and maximum size because user should be able resize to any he wants.
I tried with QSizePolicy, i couldn't get solution.
Could anyone please provide good solution with examples ? Thanks.