[Qt-interest] QMainWindow::restoreState does not correctly restore size of docked QDockWidget's

Eduardo Robles Elvira edulix at wadobo.com
Wed Oct 5 16:55:59 CEST 2011


On Mon, Sep 26, 2011 at 5:03 PM, Eduardo Robles Elvira
<edulix at wadobo.com> wrote:
> Hello everyone,
>
> I'm trying to restore the state of a main window that has some dock
> widgets in the sideways and a central widget. Depending on the section
> of the application, a different set of dock widgets and central widget
> might be loaded, so I save and restore this state, but when restoring
> it the sizes of the central widget and the lateral dock widgets is
> incorrect (size of the central widget is minimized). How can I make it
> work correctly? If the dock widget is in floating mode, the dock
> widget is restored correctly, this somehow has something to do with
> the central widget.
>
> I've created a sample app that reproduces the problem:
>
> https://gist.github.com/1242425
>
> Thanks for your time,

Hello people:

No-one had this problem before and solved it? Any suggestion for a workaround?

Regards,
-- 
Eduardo Robles Elvira   edulix at wadobo.com        +34 668 824 393  skype: edulix2
Wadobo Software S.L.   http://www.wadobo.com     it's not magic, it's wadobo!



More information about the Qt-interest-old mailing list