I created a QML application with a timer and I am using the qmer Timer component. The interval is set to 1000 milliseconds (default) ... but it only works correctly when the application is focused on it. When I put it in the background, it seems that it does not start every time, and because of this I got some errors in the application.
I tried to find something related to this in the documentation, but I could not. The timer code is very simple:
Timer { id: timer repeat: true onTriggered: {msRemaining -= 1000; Core.secondsToText(type);} }
Does anyone know about this and how to fix it?
Version: Qt 5.2 QML 2.0 OS X 10.9
qt timer qt5 qml qt-quick
danielfranca
source share