[Qt-interest] QDockWidget size

Oszkar Ambrus oszkar.ambrus at deri.org
Tue Dec 8 22:27:53 CET 2009


On 08/12/09 22:50, Josiah Bryan wrote:
> Oszkar Ambrus wrote:
>> Hi,
>>
>> I've browsed the archives and I couldn't find any hints on my question.
>> I'm using Qt Creator to create a UI with a QMainWindow and I have a 
>> QDockWidget with some contents.
>>
>> The problem is that every time I start the application, the dock 
>> widget is shrunk down completely, and I have to resize it manually.
>> I tried by resizing it in the main window constructor, but I just 
>> don't manage to do it.
>>
>> Is there a solution to this?
>>
>>   
> QMainWindow::saveState and restoreState

Well I'd like it to behave that way on the first run when the app is 
installed. Or should I do that with restoreState a well?



More information about the Qt-interest-old mailing list