1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#ifndef TIMETEST_H #define TIMETEST_H #include <QTimer> #include <QDebug> #include <QObject> #include <QDateTime> class TimeTest : public QObject { Q_OBJECT public: explicit TimeTest(QObject *parent = 0); signals: public slots: qint16 myfunction(); private: QTimer *timer; }; #endif // TIMETEST_H