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

Sahana Bhaskar Sahana_Bhaskar at infosys.com
Tue Jun 28 15:35:29 CEST 2011


≫ 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?

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?

All I have done is written this slot and defined in header. Nothing else.

void FileDialog::changeEvent ( QEvent * event )
{
...
}

void FileDialog::finished ( int result )
{
...
}

-----Original Message-----
From: Mandeep Sandhu [mailto:mandeepsandhu.chd at gmail.com]
Sent: Tuesday, June 28, 2011 6:49 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

> But I see the control does not flow to this block of code when the
> file dialog closes.

Lot of crucial details are missing here. Eg: 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?

Can you show us a more complete snippet of your code where you're connecting this slot? Or better still, send a small compilable example which shows the problem.

>
> Should the finished be emitted explicitly?? I thought it is an
> internal signal.

No.

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/685a377b/attachment.html 


More information about the Qt-interest-old mailing list