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.
12-02-2012 02:27 AM
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
02-20-2013 09:56 AM
02-20-2013 02:02 PM
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:
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.