diff --git a/main.cpp b/main.cpp index 0af68d0..21fa4e9 100644 --- a/main.cpp +++ b/main.cpp @@ -11,9 +11,6 @@ int main(int argc, char *argv[]) Window window; window.show(); - // call the window.timerEvent function every 40 ms - window.startTimer(40); - // execute the application return app.exec(); } diff --git a/window.cpp b/window.cpp index 5fdc971..86e52db 100644 --- a/window.cpp +++ b/window.cpp @@ -47,7 +47,10 @@ Window::Window() setLayout(hLayout); - fakeSensor.startms(5); + // a fake data sample every 10ms + fakeSensor.startms(10); + // Screen refresh every 40ms + startTimer(40); } Window::~Window() {