Qt How to use connect between incompatible signal and slot

7468 단어 timerfunctionqtSignal
In this I want to call a function, that function will receive a point . But this function should be invoked by a timer's timedout signal. Can anybody say how to achieve this. Below is the required/error code
Point p(a,b); connect(timer,SIGNAL(timedout()),this,startDestruction(p)); 

Can anybody say how to achieve this?
Create a method to use as an intermediate slot, like this.
Point p(a,b); connect(timer, SIGNAL(timedout()), this, q); q() {     startDestruction(this->p) } 

좋은 웹페이지 즐겨찾기