一个有关 QT connect()函数的问题
发布时间:2010-07-22 11:43:57来源:红联作者:ssh_2008
我想实现这样一个功能,每隔20MS调用一次 seCurverData(int 1, QVector buffer)函数,我了解到 connect()函数中 信号与槽的参数需要一致。但是我想实现我这样一个功能,如何做呢?
QTimer *timer = new QTimer(this,"timer");
// signals and slots connections
connect( timer, SIGNAL( timeout() ), this, SLOT( setCurveData(1,buffer) ));
timer->start(20);