[Qt-qml] Application focus

bea.lam at nokia.com bea.lam at nokia.com
Wed Jul 13 06:19:53 CEST 2011


On 13/07/2011, at 1:14 AM, ext vineeth wrote:

> Hello Martin,
>   It would be nice if there could also be a signal associated with this property , which is emited once the focus is lost or received. 
> Br,
> --vineeth


Hi Vineeth,


This could be achieved using the Connections element:

     Connections {
         target: Qt.application
         onActiveChanged: console.log('active changed to:', Qt.application.active)
     }


regards,

Bea


More information about the Qt-qml mailing list