Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
DockWidget chagne Size & mouse Change Size Error.
Pada_ last edited by
When you setWidget on a QDockWidget and click on QGraphicsItem, the QDockWidget displays information about the item you clicked.
QDckWidget will always change its size because the information shown differs from item to item.
I want QDockWidget to be created in one size when it is first created, and I want to show it in that size when I click on the items.
So I have setMaxmumSize and setMinimumSize.
It shows only in its size without moving. However, the size can not be manipulated with the mouse.
What if you want to manipulate the size with your mouse? Thank you.
setting setMaxmumSize is absolute and mouse cannot change it.
You could put the widget you use with setWidget into a QScrollArea.
Then if it gets bigger it shows scrollbars and user can resize to show all.