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
Post a Comment