QTimer问题-----备注

来源:互联网 发布:白酒网络推广方案 编辑:程序博客网 时间:2024/04/27 12:42


疑问:  为什么

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

0 0