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

Alexandre Beraud aberaud at infflux.com
Tue Jun 28 15:49:25 CEST 2011


Wait, maybe I misunderstood you but did you connect the finished(int)
signal to your finished(int) slot ? The finished(int) signal, even if
emited automaticaly by the QDialog class, needs to be connected to some
slot, in your case, the finished(int) method that is NOT the same thing
as the finished(int) signal.
I would give the slot function another name, like handleFinished(int)
and add (for example in the constructor):
connect(this, SIGNAL(finished(int)), this, SLOT(handleFinished(int)));

Regards,

Alex


Le 28/06/2011 15:35, Sahana Bhaskar a e'crit :
> *In the examples s**hown 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 )
> {
> ...
> }
>

-- 
Alexandre BERAUD
Inge'nieur De'veloppement - INFFLUX
01 49 57 92 00

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110628/3eb5ba54/attachment.html 


More information about the Qt-interest-old mailing list