[Qt-interest] Parameters in slots
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Tue Mar 24 12:38:41 CET 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090324/499bdae9/attachment.html
More information about the Qt-interest-old
mailing list