其实只是想把一个START按键和Timer连起来,点一下START计时器开始工作,程序编译没有问题,但是运行时显示:
Object::connect: No such slot QTimer::start(500)
代码如下:
QTimer *timer = new QTimer(this);
connect(startbutton, SIGNAL(clicked()), timer, SLOT(start(500)));
connect(stopbutton, SIGNAL(clicked()), timer, SLOT(stop()));
connect(timer, SIGNAL(timeout()), native, SLOT(animate()));
setWindowTitle(tr("Data Display"));
STOP按键是可以用的,但是START不行...求助啊求助