diff options
author | NielsCoding <n.stunnebrink@student.avans.nl> | 2022-10-10 18:30:19 +0200 |
---|---|---|
committer | NielsCoding <n.stunnebrink@student.avans.nl> | 2022-10-10 18:30:19 +0200 |
commit | 2cdbf0173600183f1fb14fdd0e01f00e8b09f308 (patch) | |
tree | b1f4ace8a0fd769056377710b63006bef69a8c6a /client/esp/timetest.cpp | |
parent | 1000c8fd861b046a72bb3957dcc04cd6b28ceede (diff) |
esp code voor qt
Diffstat (limited to 'client/esp/timetest.cpp')
-rw-r--r-- | client/esp/timetest.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/client/esp/timetest.cpp b/client/esp/timetest.cpp new file mode 100644 index 0000000..2e575f2 --- /dev/null +++ b/client/esp/timetest.cpp @@ -0,0 +1,18 @@ +#include "timetest.h" + +TimeTest::TimeTest(QObject *parent) : QObject(parent) +{ + timer = new QTimer(this); + connect(timer, SIGNAL(timeout()),this,SLOT(myfunction())); + timer->start(5000); +} + +qint16 TimeTest::myfunction() +{ + QTime time = QTime::currentTime(); + qint16 time_text = time.minute(); + + return time_text; + + +} |