c++ - Qt- How to use connect between incompatible signal and slot -


i trying game. in want call function, function receive point . function should invoked timer's timedout signal. can how achieve this. below required/error code

point p(a,b);  connect(timer,signal(timedout()),this,startdestruction(p)); 

can how achieve this?

create method use intermediate slot, this.

point p(a,b); connect(timer, signal(timedout()), this, q);  q() {     startdestruction(this->p) } 

Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -