-
I'm trying to change the size of a floating dock from within the code (think: button "show details"). I've come up with the following, trying various combinations of this, on my custom widget and the parent dock widget:
all this does is change the size of my custom widget inside the dock, but never the size of the dock. Any suggestion on how to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's not the floating widget. The floating widget is |
Beta Was this translation helpful? Give feedback.
That's not the floating widget. The floating widget is
dockWidget->dockContainer()->floatingWidget()
. In Linux it is a subclass ofQDockWidget
otherwise it is a subclass ofQWidget
.