You are not logged in.

1

Friday, July 16th 2010, 1:40pm

How to ask QDockWidget orientation

Dear members,

I am developing an application with QDockWidget layout and I save all dock widgets' position (eg. where docked to, like Qt::TopDockWidgetArea) to restore the layout on the next start.
I can restore tabified QDockWidgets, but can't figure out how to programatically retreive QDockWidget orientation while I am able to set the QDockWidgets orientation with QMainWindow::splitDockWidget()...

Please advise.

This post has been edited 1 times, last edit by "jani" (Jul 16th 2010, 1:46pm)


Junior

Professional

  • "Junior" is male

Posts: 1,613

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

2

Friday, July 16th 2010, 1:47pm

Are you using QMainWindow::saveState?

3

Friday, July 16th 2010, 1:51pm

Did not notice that method so far, I am going to check it. Thank you.

4

Friday, July 16th 2010, 2:03pm

Works well. Don't know how I missed these methods :(
Thank you.