[Qt-interest] signal emitted eveytime the dialog closes, in QT internally
Sahana Bhaskar
Sahana_Bhaskar at infosys.com
Tue Jun 28 08:37:40 CEST 2011
Thanks for your suggestion, but my question is this "if I close a dialog ( could be due to various events, not a single event), then is there a single signal that can be sent on all of those..
Let me explain it further:
Say I have a file open dialog with 3 buttons
1)open
2)cancel
3) 'X' on the top
Now my dialog on open opens the file on a different window and the open diaog closes, cancel : cancels the operation in turn closing the dialog, and 'X' of course would close it too..
Now my question is this : irrespective of which event closes the dialog I want to send a signal saying the dialog was closed. I don't want to go to the event handlers of each of the buttons and do it.
Thanks,
Sahana
-----Original Message-----
From: qt-interest-bounces+sahana_bhaskar=infosys.com at qt.nokia.com [mailto:qt-interest-bounces+sahana_bhaskar=infosys.com at qt.nokia.com] On Behalf Of Malyushytsky, Alex
Sent: Tuesday, June 28, 2011 4:32 AM
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] signal emitted eveytime the dialog closes, in QT internally
I advise you to check concept of signals/slots again.
Once you understand that one object (not class) emits signal and all objects (not classes) will have (all) connected to this signal slots called, you basically will get answer to your question.
I am not sure I understand second question enough to answer it.
Anyway, it is a good idea to have 1 question per thread if they are unrelated.
Regards,
Alex
-----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 Sahana Bhaskar
Sent: Monday, June 27, 2011 6:08 AM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] signal emitted eveytime the dialog closes, in QT internally
Hi all ,
I have a dialog that can close under 2 scenario's
1) I press some buttons on it say ok ,cancel..
2) press the 'x' button on the top of the dialog
Now I want to signal some class that the dialog was opened and closed by itself. Is it possible? I.e. I want the dialog to tell the other classes that it was closed(so opened of course!) by itself basically send a signal internally.
And also I have another question. When a URL is added/removed to/from the sidebar in a dialog can we capture this event?
Thanks,
Sahana Bhaskar
**************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS*** _______________________________________________
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.”
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list