[Qt-interest] Strange modal dialog behaviour in Qt 4.6.0 Windows
Malyushytsky, Alex
alex at wai.com
Thu Jun 17 00:10:41 CEST 2010
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.”
More information about the Qt-interest-old
mailing list