I wanted to know if it is possible to specify multiple connection types. For example, I want my connection type to be a queued connection and a unique connection. Is it possible to specify that in one statement ?
QObject::connect(ptrSender,SIGNAL(..),ptrReceiver,SLOT(...),Queued-and-unique)
Update :
Following the suggestion of the posters:
I tried using Qt::QueuedConnection | Qt::UniqueConnection
but I get
`Error 1 error C2664: 'QMetaObject::Connection QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)' : cannot convert parameter 5 from 'int' to 'Qt::ConnectionType'
In theory, it seems to be possible for your scenario. At least, you can read the docs documentation about it.
Based on the aforementioned documentation, you would write something like this: