[Qt-interest] signal emitted eveytime the dialog closes, in QT internally
Thomas Ganshorn
mailings at novaimages.de
Tue Jun 28 14:41:59 CEST 2011
You do not have to implement the signal.
Signals are automatically implemented when defined with signals keyword.
(This is done by the moc compiler who reads signals and knows unless defined
otherwise all following functions are to be defined as signals).
to call a signal you can just call the functionname (finished() ) or for better
readability write
emit finished()
in your case you only have to write a slot that gets connected with finished.
in this slot you can then handle whatever you want to do
Sahana Bhaskar <Sahana_Bhaskar at infosys.com> hat am 28. Juni 2011 um 14:32
geschrieben:
> Sorry am a beginner in QT. I tried adding a signal for finshed() and
> respective slot. But was not able to. Could anyone help me out with this.
>
> How to implement qdailog::finshed() in qfiledialog?
>
> Thanks,
> Sahana
>
> -----Original Message-----
> From: Mandeep Sandhu [mailto:mandeepsandhu.chd at gmail.com]
> Sent: Tuesday, June 28, 2011 5:11 PM
> To: Sahana Bhaskar
> Cc: qt-interest at qt.nokia.com
> Subject: Re: [Qt-interest] signal emitted eveytime the dialog closes, in QT
> internally
>
> On Tue, Jun 28, 2011 at 4:44 PM, Sahana Bhaskar <Sahana_Bhaskar at infosys.com>
> wrote:
> > Thanks, but finished() is a member of qdialog and I am working with
> > qfiledialog.. can "finished" by any way be inherited in qfiledailog?
>
> Signal are inherited by derived classes.
>
> If you look at the documentation of 'QFileDialog'
> (http://doc.qt.nokia.com/latest/qfiledialog.html), you'll see under the
> 'SIGNALS' section:
>
> 3 signals inherited from QDialog
> ...
>
> So you can use the parent class' signals.
>
> 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***
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110628/61f37e47/attachment.html
More information about the Qt-interest-old
mailing list