May I have a \"dangling reference\" with the following code (in an eventual slot connected to the myQtSignal)?
class Test : public QObject
{
Q_OBJECT
si
I'm sorry to continue a subject years old but it came up on Google. I want to clarify HostileFork's answer as it may mislead future readers.
Passing a reference to a Qt signal is not dangerous thanks to the way signal/slot connections work:
emit MySignal(my_string)
returns all directly connected slots have been executed.http://qt-project.org/doc/qt-5.1/qtcore/qt.html#ConnectionType-enum