11-30-2012 11:19 AM
Hi, how would I catch when the user exits the app? I would like to do save some user setting before the app exits.
Solved! Go to Solution.
11-30-2012 11:33 AM
The proper way to do this is generally to set autoExit = false and process the manualExit() signal.
See https://developer.blackberry.com/cascades/referenc
12-02-2012 02:27 AM
Thanks Peter,
As I am very new to dev, I have some basic questions.
I connected the event to a slot
QObject::connect(app, SIGNAL( manualExit() ), this, SLOT( onManualExit() ));
but inside onManualExit(), after I save everything, how do I actually quit the app?
12-02-2012 10:55 AM
12-03-2012 12:22 PM
Thanks Peter!
02-20-2013 09:56 AM
I am trying to -
app.setAutoExit(false) ;
but app is now not linking. I get this error :
undefined reference to symbol '_ZN2bb11Application11setAutoExitEb'
Anyone seen this. Thanks.
02-20-2013 12:48 PM
02-20-2013 02:02 PM
Zmey wrote:
Add the following line to .pro file:
LIBS += -lbb
Thanks...that worked. I looked all over to see if I was missing another library (why can't the IDE add those automatically) but didn't find it. Could you let me know where I should have seen it so I know for the next time. Thanks.
02-20-2013 02:13 PM
Sometimes it's mentioned in docs, but not always:
http://developer.blackberry.com/cascades/reference
It's often possible to guess the library name. BB libs follow this convention:
#include <bb/cascades/...> the corresponding lib is libbbcascades.so which becomes -lbbcascades key.
#include <bb/device/...>: -lbbdevice
and so on.
The convention is not mandatory though so it might be hard to automate.
Grepping by function name in target's libraries folder can also give hints. If the function is declared in system headers then the implementation should also be present somewhere.
02-20-2013 02:30 PM