If you need to connect a SIGNAL to a SLOT with parameters, arguments must match.
Dont write down their name since the connect failed.
//good connection
QObject::connect(sender,
SIGNAL(mySignal
(type1, type2
)), receiver,
SLOT(mySlot1
(type1, type2
)));
/*wrong connection with argument names
QObject::connect(sender, SIGNAL(mySignal(type1 arg1, type2 arg2)), receiver, SLOT(mySlot1(type1 arg1, type2 arg2))); */
//good connection
QObject::connect(sender, SIGNAL(mySignal(type1, type2)), receiver, SLOT(mySlot1(type1, type2)));
/*wrong connection with argument names
QObject::connect(sender, SIGNAL(mySignal(type1 arg1, type2 arg2)), receiver, SLOT(mySlot1(type1 arg1, type2 arg2))); */
To copy to clipboard, switch view to plain text mode
Notice that you dont need to use them all :
QObject::connect(sender,
SIGNAL(mySignal
(type1
)), receiver,
SLOT(mySlot2
(type1
)));
QObject::connect(sender, SIGNAL(mySignal(type1)), receiver, SLOT(mySlot2(type1)));
To copy to clipboard, switch view to plain text mode
With a default parameter in your OpenWindow function, your connect should work
I hope I understood your problem.
Bookmarks