title: How to block the back key in android when using Qt
body: <p>I need to prevent the app im doing to exit if someone pushes the back key on an Android device so I can send a messagebox to ask if the user wants to leave the app or not, I found that using:</p>
  
  <pre><code>@Override
  void MainWindow::onBackPressed()
  {
      ...
  }
  </code></pre>
  
  <p>I could handle that event, I tried it on my necessitas project and it didn't work. Can qtkeyevent handle this? or is there another way to do it?</p>
  
  <p>I block it using this:</p>
  
  <pre><code>@Override
  public boolean onKeyDown(int keyCode, KeyEvent event)
  {
    if ( (keyCode == KeyEvent.KEYCODE_BACK) )
     {
       //moveTaskToBack(true); 
       return true;
     }
  if (QtApplication.m_delegateObject != null &amp;&amp; 
          QtApplication.onKeyDown != null)
     return (Boolean) 
  QtApplication.invokeDelegateMethod(QtApplication.onKeyDown, keyCode, event);
     else
     return super.onKeyDown(keyCode, event);
  }
  </code></pre>
  
  <p>Now I need to capture the event on Qt so I an send a message</p>