[Qt-interest] Using Strings instead of SIGNAL(foo())
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Wed Jan 28 20:40:39 CET 2009
Are you trying to emit a signal with a single parameter as a string?
signals:
void sigMySignal( const QString & ) ;
with a connection like:
connect( this, SIGNAL( sigMySignal( const QString & ) ), object, SLOT( slotMySlot( const QString & ) ) );
Will do the trick…
Scott
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Hari Sundar
Sent: Wednesday, January 28, 2009 9:41 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Using Strings instead of SIGNAL(foo())
Hi,
I am interested in emitting a signal based on a string ... now since SIGNAL(foo) converts the function to a string ... I should be able to manage this ... right ?
Is this possible ? How would I go about doing this ?
thanks,
Hari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090128/231f1a8f/attachment.html
More information about the Qt-interest-old
mailing list