How to set width of PySide.QtGui.QDockWidget in python
-
Friends,
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.
Thanks
Ravi.