Um... that's Java code. 
See http://doc.qt.io/qt-5/qtquickcontrols-touch-main-qml.html for a QML Back button mapping using stack view.
 
Sent: Tuesday, May 03, 2016 at 1:38 PM
From: "Nuno Santos" <nunosan...@imaginando.pt>
To: "Qt Interest" <interest@qt-project.org>
Subject: Re: [Interest] Back button crashes Qt app on Android
It seems that back button by default deletes the activity. It seems that I’m not able to override the back button action and therefore, it is killing my activity. During this delete force, it is crashing the app. 
 
Any special remarks in order to override the back button function on a Qt Android app?
 
I’m doing this:
 
@Override
public void onBackPressed()
{
    Log.d(“APP", "onBackPressed");
 
    super.onPause();
}
 
Nuno
 
On 03 May 2016, at 15:09, Nuno Santos <nunosan...@imaginando.pt> wrote:
 
Hi,
 
I have noticed the if I press the back button in a Qt Android app, it crashes. 
 
Does anyone here had the same problem?
 
Regards,
 
Nuno
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to