qt-interest@trolltech.com
[Top] [All Lists]

Re: Initial QDockWidget layout

Subject: Re: Initial QDockWidget layout
From: Martin
Date: Tue, 06 Jun 2006 11:19:19 +0200
Martin wrote:
Matthieu Dazy wrote:
Martin wrote:

QMainWindow is able to store and load the toolbar/dock layout (#saveState/#restoreState), there has to be some way to do this programmatically as well... or so I hope :) Does someone know how to do this?

Have you tried checking the code for the methods you just mentioned ?

Yes I have. They serialise the internal layout to/from a stream. The layout is of type QMainWindowLayout, a non-public class, so this approach won't work for me.

M


Btw, I don't know how to do this using sizeHints, so if someone could give me a, well, hint on how to do that, I would be very thankful as well :)


M

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>