[Qt-interest] QMainWindow::restoreState does not correctly restore size of docked QDockWidget's
Malyushytsky, Alex
alex at wai.com
Thu Oct 6 01:40:11 CEST 2011
Comment deleting and recreating widget code in restore() and you will see that everything is working.
void testguiapp::restore()
{
qDebug() << "restore";
// deleteGui();
// createGui();
restoreState(mState);
}
-----Original Message-----
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Eduardo Robles Elvira
Sent: Wednesday, October 05, 2011 7:56 AM
To: Qt-interest at trolltech.com
Subject: Re: [Qt-interest] QMainWindow::restoreState does not correctly restore size of docked QDockWidget's
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!
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
More information about the Qt-interest-old
mailing list