[Qt-interest] Modal Question Dialogs in event handler?
Malyushytsky, Alex
alex at wai.com
Tue Sep 29 20:35:33 CEST 2009
I have not had such problems, but I did not have slots with message box connected to QTabWidget::currentChanged signal.
I would be surprised if it was a problem though. Problem is mostly likely in the other code you executing in your slot.
You can try to use Qt::QueuedConnection in your connect, so your slot is called after all current events are handled.
Regards,
Alex
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Eric Clark
Sent: Monday, September 28, 2009 11:18 AM
To: Qt Interest (qt-interest at trolltech.com)
Subject: [Qt-interest] Modal Question Dialogs in event handler?
Hello All,
I was wondering if anyone knows of any issues with showing a modal QMessageBox::question dialog from within an event handler (slot). I have a slot that is responding to the QTabWidget::currentChanged signal and when I show the QMessageBox::question dialog the widgets in the QTabWIdget all disappear. Then when I close the dialog and hover over the widgets they reappear as I hover over each one. As soon as I click on a tab in the QTabWidget, the application crashes. Does anyone know if there is a known issue with this? Or has anyone experienced any similar problems?
Thank You,
Eric
---------------------------------------------------------------------------------------------------
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