01-06-2013 06:44 PM
Is there anything special I need to do to handle an exit event from BB10 when using Qt/C++? (i.e. when the user clicks the close app 'X' button from the navigator window)
At the moment the window closes, the icon becomes transparent but the process remains and has to be terminated via the IDE.
If I implement an exit button from within my app it exits gracefully with no issues (but I still need to handle closing the app via the navigator).
I'm using Qt/C++.
Thanks in advance.
01-06-2013 06:51 PM - edited 01-06-2013 06:54 PM
It should terminate automatically. Nothing special needs to be done. When you run the application without debugger does it exit instantly? If the icon remains transparent for longer than half a second then most likely you're not releasing all resources properly. Can you please try this with new project created from a template to see if it shows the same behavior?
Sorry, I thought you were using Cascades.
01-09-2013 06:16 PM
[Note I also posted this here]
I think this Qt/C++ BB10 example may hold some clues:
It connects the signals lastWindowClosed() and aboutToQuit() to the quit() slot:
app->connect( app, SIGNAL(lastWindowClosed()), app, SLOT(quit()) ); app->connect( app, SIGNAL(aboutToQuit()), app, SLOT(quit()) );
I've tried adding this to my app, but it hasn't yet made a difference - I'm convinced this has something to do with it, so I'm going to try pursuing this route for now.
01-13-2013 06:12 PM