疑问: 为什么
QTimer *timer=new QTimer(this);
connect(timer,SIGNAL(timeout()),native, SLOT(update()));
可以起作用,但是:
QTimer timer(this);
connect(&timer,SIGNAL(timeout()),native, SLOT(update())); 就不起作用呢
疑问: 为什么
QTimer *timer=new QTimer(this);
connect(timer,SIGNAL(timeout()),native, SLOT(update()));
可以起作用,但是:
QTimer timer(this);
connect(&timer,SIGNAL(timeout()),native, SLOT(update())); 就不起作用呢