the:
void on_xxx_yyy();
void on_xxx_yyy();
To copy to clipboard, switch view to plain text mode
slots works fine but the xxx is not a C++ variable name but the object name (QObject::objectName(), QObject::setObjectName()), and didn't set any object name to your timer. So better do it in standard way, it means connect slot with signal manualy:
private slots:
void myTimeoutSlot();
private:
private slots:
void myTimeoutSlot();
private:
QTimer *timer;
To copy to clipboard, switch view to plain text mode
. . .
connect(timer, SIGNAL(timeout()), this, SLOT(myTimeoutSlot()));
. . .
. . .
connect(timer, SIGNAL(timeout()), this, SLOT(myTimeoutSlot()));
. . .
To copy to clipboard, switch view to plain text mode
Bookmarks