I used something like this in my code:
#define CONNECT_OR_DIE(source, signal, receiver, slot,connection_type) \ if(!connect(source, signal, receiver, slot,connection_type)) \ qt_assert_x(Q_FUNC_INFO, "CONNECT failed!!", __FILE__, __LINE__);
I used it instead of just calling connect (). Does this help you?
Umnyobe
source share