[Qt-interest] signal emitted eveytime the dialog closes, in QT internally

Sahana Bhaskar Sahana_Bhaskar at infosys.com
Tue Jun 28 16:17:32 CEST 2011


Thanks I got it ☺

From: Mandeep Sandhu [mailto:mandeepsandhu.chd at gmail.com]
Sent: Tuesday, June 28, 2011 7:39 PM
To: Sahana Bhaskar
Cc: Thomas Ganshorn; qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] signal emitted eveytime the dialog closes, in QT internally


2011/6/28 Sahana Bhaskar <Sahana_Bhaskar at infosys.com<mailto:Sahana_Bhaskar at infosys.com>>
≫ how did you connect the slot, did connect return true etc. And how are you verifying that this slot is not called? Have you put debugs there?

>Yes I put a break on that statement . I don’t understand how do I connect to the slot?

By calling QObject::connect().

Without connect a signal to a slot (see docs on how to use connect), the slot won't be called! :)

In the examples shown below I just added the below two functions to the same class. Now the control flows to changeevent on every event but not to finished on close. Why?

changeEvent() gets called because its a virtual function in QFileDialog and you're overloading it in your class (which i presume, you're extending from QFileDialog).

Before you go any deeper, I suggest you read up some tutorials on how to use signals/slots in Qt.

You can start here:

http://doc.qt.nokia.com/4.7/signalsandslots.html

HTH,
-mandeep


**************** 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***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110628/49cb864d/attachment.html 


More information about the Qt-interest-old mailing list