8Observer8
28th August 2014, 06:49
Hello!
I created the MainWindow project and added:
MainWindow.h
private:
void timerEvent( QTimerEvent *event );
I wrote in the constructor of the MainWindow:
startTimer( 2000 );
I wrote:
void MainWindow::timerEvent(QTimerEvent *event)
{
qDebug() << "timerEvent";
}
How to stop this timer here:
void MainWindow::on_startTransmissionButton_clicked()
{
}
P.S. I cannot find timerEvent in the Qt's documentation
I created the MainWindow project and added:
MainWindow.h
private:
void timerEvent( QTimerEvent *event );
I wrote in the constructor of the MainWindow:
startTimer( 2000 );
I wrote:
void MainWindow::timerEvent(QTimerEvent *event)
{
qDebug() << "timerEvent";
}
How to stop this timer here:
void MainWindow::on_startTransmissionButton_clicked()
{
}
P.S. I cannot find timerEvent in the Qt's documentation