
Originally Posted by
aj2903
thanks spirit.
mean this is how the signal should be connected
connect(this,SIGNAL(mySignal),this,SLOT(func1)); or
connect(class name ,SIGNAL(mySignal),this,SLOT(func1));
it should look like:
connect(pointerToSomeObject, SIGNAL(someSignal(parameterType)), pointerToSomeObject, SLOT(someSlot(parameterType)));
connect(pointerToSomeObject, SIGNAL(someSignal(parameterType)), pointerToSomeObject, SLOT(someSlot(parameterType)));
To copy to clipboard, switch view to plain text mode
so your first version is almost correct - you forgot about patameter type, for example: mySignal(int) instead of mySignal
Bookmarks