how to set QDockWidget's position?
-
how to set QDockWidget's position?
i set the QDockWidget::setFloating(true), but its postion is at the LeftTop point of the parent window.
but i want to locate it in the center of the parent window.
thank you -
Hi,
Get the center of the main window geometry and set it on the QDockWidget geometry with moveCenter
-
sorry, but i don;t fine moveCenter API
-
It's on QRect
-
@Chris-Kawa answered with an example here