[Qt-interest] QMainWindow::restoreState does not correctly restore size of docked QDockWidget's
Eduardo Robles Elvira
edulix at wadobo.com
Mon Sep 26 17:18:30 CEST 2011
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,
--
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