You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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.