[Interest] Signal with QString argument from another thread.
Igor Mironchik
igor.mironchik at gmail.com
Tue Oct 6 18:43:03 CEST 2015
Hi guys,
Is it safe to use QString argument in queued slot when signal emitted
from another thread?
void mySignal( QString arg );
void mySlot( QString arg );
The same question if argument will be const QString & and argument to
signal passed as temporary object, like this:
void mySignal( const QString & arg );
emit mySignal( QLatin1String( "Hello!!!" ) ); // emitted from another
thread, different from GUI thread...
void mySlot( const QString & arg ); // Live in GUI thread...
Slot connected to signal with Qt::QueuedConnection...
Thank you.
More information about the Interest
mailing list