Important: Please read the Qt Code of Conduct -

Map back to home

  • With qt 5.3 in android, I prevent app from quiting like this:

    if (event.key === Qt.Key_Back) {
    event.accepted = true;

    And I want to put app in background when the back key is pressed. More likely the home key is pressed.
    Need Java code to do this?

  • I try to use own Activity insteadof the default, but not work.
    @public class MyActivity extends
    public void onBackPressed() {
    Intent i= new Intent(Intent.ACTION_MAIN);

Log in to reply