Important: Please read the Qt Code of Conduct -

How to GET a QDockWidget position ?

  • All is in title !

    in a GUI Application, I want to get a QDockWidget current area in order to restore its state when running again my application.
    I can SET QDockWidget area with something like
    @self.addDockWidget(Qt.DockWidgetArea(8), self.MyDockWidget)@
    but i cannot find a way to GET its area (no method @MyDockWidget.dockWidgetArea()@)
    Thanks for your answer.

  • [solved]
    I answer to myself :

    the method dockWidgetArea() is in QMainWindow class :

    @QMainWindow::dockWidgetArea ( QDockWidget * dockwidget )@

Log in to reply