If tried using the following code but my callback function is never called.

program = HILDON_PROGRAM(hildon_program_get_instance());
g_signal_connect(G_OBJECT(program), "notify::is-topmost", G_CALLBACK(topmost_status_change), NULL);


After adding the following code in callback function from "osso_hw_set_event_cb" I've noticed that the "is-topmost" value is never changed, even when the app is on background.

g_object_get(G_OBJECT(program),"is-topmost",&flag,NULL);
qWarning() <<"##### Minimize application inactivity event!" << flag ;


So I suspect that hildon_program_get_instance() might not be the same QApplication that I'm executing. Any suggestions?