-
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.
Answered by
char101
Feb 26, 2025
Replies: 1 comment 1 reply
-
That's not the floating widget. The floating widget is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
martinwag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
.