[maemo-developers] Stopping QML update when not visible

From: Andrew Flegg andrew at bleb.org
Date: Mon May 30 16:55:04 EEST 2011
Hi,

Qt Quick 1.1 apparently features a "Qt.application.active" read-only
property[1] which can be connected (somehow) to stopping animations,
reading sensors and so on.

However, in my rewrite of Attitude[2] in QML, I'd like to do something
similar. In fact, given my app's running at 50-60% CPU, I'd consider
it a blocker to replacing the Pymaemo & Cairo implementation already
in Extras. So, I'd even accept some hacky C++ way.

Thoughts welcome. To be honest, it's amazing (and disappointing) that
there isn't a way of doing this in Qt Quick 1.0. Can anyone confirm
whether or not it's at least not updating the screen when hidden (it
does in the task manager), and it's only the accelerometer signalling
I need to switch off?

Thanks in advance,

Andrew


[1] http://doc.qt.nokia.com/4.7-snapshot/qml-qt.html#application-prop
[2] http://maemo.org/packages/view/attitude/

-- 
Andrew Flegg -- mailto:andrew at bleb.org  |  http://www.bleb.org/
More information about the maemo-developers mailing list