Skip to content

Handling back button in Android

Sathya Prasad edited this page Oct 31, 2016 · 1 revision

Here is an example:

 focus: true // important - otherwise we'll get no key events	
     Keys.onReleased: {		
         if (event.key === Qt.Key_Back) {		
             event.accepted = true		
             //do some action here like close or pop the stack view		
         }		
     }