這有一段代碼:QTime *timer = new QTime();connect(timer, SIGNAL(timeout()), this, SLOT(update()));timer->start();為什么 構建是 總是說F:\program\Clock\clock.cpp:14: error: no matching function for call to 'Clock::connect(QTime*&, const char*, Clock* const, const char*, Qt::ConnectionType)我在網上查過了,connect(timer, SIGNAL(timeout()), this, SLOT(update())); 這么寫好像都是對啊,希望各位解答,謝謝!
- 2 回答
- 0 關注
- 324 瀏覽
添加回答
舉報
0/150
提交
取消