Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 653
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers
Accepted Solution

How to Exit/Quit App in C++

I am using exit(0) now in c++ that is called from my QML exit button.  Problem is sometimes the app hangs on exit but not always.  Is this the best way to do it or should I just remove the button and let the user use the gestures to close the app?

Thanks.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Developer
Developer
Posts: 174
Registered: ‎03-05-2009
My Device: Dev Alpha
My Carrier: -

Re: How to Exit/Quit App in C++

in QML:

Application.quit();

 

in C++ :

Application::instance()->exit(0)

Developer
Posts: 653
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: How to Exit/Quit App in C++

Got it....thanks.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing