user1006989
user1006989

Reputation:

PyQt: Get current Qt.DockWidgetArea of QDockWidget

How would you find the current Qt.DockWidgetArea of a QDockWidget? I would like to be able to hide QDockWidget's depending on their position respect the QMainWindow.centralWidget()

Upvotes: 2

Views: 1099

Answers (1)

Gary Hughes
Gary Hughes

Reputation: 4510

Calling .dockWidgetArea(<QDockWidget>) from your QMainWindow should give you what you need.

(docs)

Upvotes: 4

Related Questions