If you are trying in QtQuick 1.1, you could use Qt.application.active to check if application is active or not. Otherwise you could listen for QEvent::ApplicationActivate, QEvent::ApplicationDeActivate in your cpp code and then communicate it to qml objects in your QtQuick app