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
If the scope in which an object exists ends and it is then used, it will refer to a destroyed object which will cause undefined behaviour. If you are not sure whether the scope will end, it is best to allocate the object on the free store via new and use something like shared_ptr to manage its lifetime.