[Qt-interest] Parameters in slots

sathya tej ragesathya at gmail.com
Tue Mar 24 13:54:30 CET 2009


Thank You.



2009/3/24 Scott Aron Bloom <Scott.Bloom at sabgroup.com>

>  Im sorry.. I must be misunderstanding you…
>
>
>
> You want to send a variable as a parameter in a signal (you send signals
> not slots)
>
>
>
> int value = 42;
>
> emit sigUltimateAnswer( value );
>
>
>
> Works just fine…
>
>
>
> If you had a slot connected to it…
>
>
>
> void className::slotWhatIsTheUltimateAnswer( int value )
> {
> qDebug() << value;
> }
>
>
>
>
> BTW>. Read the docs in QT on signals and slots.. or… try google.
>
>
>
> Scott
>
>
>
>
>
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *sathya tej
> *Sent:* Tuesday, March 24, 2009 4:28 AM
> *To:* qt-interest at trolltech.com
> *Subject:* [Qt-interest] Parameters in slots
>
>
>
> hello everyone,
>
> Is it possible to send variables as parameters in slots?
> If not please suggest me an alternative.
>
> Thank You,
>
> Sathya
>
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090324/c35379ba/attachment.html 


More information about the Qt-interest-old mailing list