Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to GET a QDockWidget position ?

How to GET a QDockWidget position ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ppuiseux
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      ppuiseux
      wrote on last edited by
      #2

      [solved]
      I answer to myself :

      the method dockWidgetArea() is in QMainWindow class :

      @QMainWindow::dockWidgetArea ( QDockWidget * dockwidget )@

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved