[Qt-interest] Strange modal dialog behaviour in Qt 4.6.0 Windows
Malyushytsky, Alex
alex at wai.com
Thu Jun 17 01:22:05 CEST 2010
It looks like non-modal dialogs are affected too in similar pattern.
I build 32 bit application under Windows XP 64 bit with MSVC 2005.
Alex
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Malyushytsky, Alex
Sent: Wednesday, June 16, 2010 3:11 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Strange modal dialog behaviour in Qt 4.6.0 Windows
Hi ,
Any simple dialog (ui file created in QtDesigner), displayed as modal with exec() ignores size specified in call to ->resize
and is shown full screen if application ( not parent, cause I tried put different parents) is in maximized state.
If application is not maximized it opens as expected with a size specified in resize.
More of that if parent is maximized and I double click dialog title it makes it smaller (not the size specified in resize).
If I close dialog now and open again it will be opened and resized correct size.
If I make application window get maximized ( restore and maximize again for example) and dialog is opened it will be shown in full screen again.
This did not happen in Qt 4.5.2 - last version I used before 4.6.0.
I expect this being a bug, but since I am not using the latest version and switching to one takes time to me,
I am trying to see if anybody else seen similar behavior?
Anybody has any comments?
QDialog instance is constructed as below:
Ui_OptionsDialog ui;
QDialog dlg (this);
ui.setupUi ( &dlg );
if ( dlg.exec( ) == QDialog::Accepted )
{
;
}
Ui file is any simple uio file I put 1 resizable control and add it to layout, auto-generated setupUi has call to resize which is called (verified under debugger) :
void setupUi(QDialog *OptionsDialog)
{
if (OptionsDialog->objectName().isEmpty())
OptionsDialog->setObjectName(QString::fromUtf8("OptionsDialog"));
OptionsDialog->resize(548, 227);
QIcon icon;
........
Regards,
Alex Malyushytsky
---------------------------------------------------------------------------------------------------
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.”
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list