[Qt-interest] X button does not close modeless dialog
Malyushytsky, Alex
alex at wai.com
Fri Sep 4 04:40:32 CEST 2009
Hi,
After upgrading to QT 4.5.2 on Linux (CentOS, gcc, kde 3.5.4),
my modeless dialogs stopped closing when user click x button at the top right corner of the dialog.
Simple test code can be found in the zipped attachment.
Build, run, click /Edit/Show Modeless dialog, click the X button.
In short, all I do is creating an instance of the dialog with a few attributes.
Also 3 functions are overridden. In example they are simply calling base class prototypes as below.
FlexModelessDialogBase::FlexModelessDialogBase(QWidget * parent)
: QDialog (parent, Qt::Dialog | Qt::WindowMinimizeButtonHint| Qt::WindowSystemMenuHint )
{
this->setAttribute( Qt::WA_DeleteOnClose );
}
void FlexModelessDialogBase::closeEvent( QCloseEvent *event )
{
QDialog::closeEvent(event);
}
void FlexModelessDialogBase::accept( )
{
QDialog::accept( );
}
void FlexModelessDialogBase::reject( )
{
QDialog::reject( );
}
I can't be sure that anything else on our systems was not upgraded, so decided to check if anybody else have similar problem, before reporting the bug.
I would appreciate, if anybody could test it and say, if the dialog is closing on his (Linux) system.
Regards,
Alex Malyushytsky
Research Engineer - Weidlinger Associates Inc.
web: http://www.wai.com
---------------------------------------------------------------------------------------------------
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."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdi.zip
Type: application/x-zip-compressed
Size: 3268 bytes
Desc: mdi.zip
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090903/ca44b140/attachment.bin
More information about the Qt-interest-old
mailing list