01-09-2013 04:18 AM
I want to use SystemDialog and SystemToast in my Cascade app.
Like said here https://developer.blackberry.com/cascades/document
I added LIBS += -lbbsystem in my .pro file but I'm asking about the following :
To use SystemDialog classes in Cascades, you must include the bb::system classes in your app header file. It is also a good idea to use the bb::system namespace so that you do not have to use fully qualified names in your code.
using namespace bb::system;
I'll use SystemDialog and SystemToast only in qml not C++. Do I have to include this in my app header file too ?
01-09-2013 04:21 AM - edited 01-09-2013 04:21 AM
You have to register your C++ class into the qml context to use them in qml .
, 1, 0,
01-09-2013 04:31 AM
Thank you but the SystemDialog documentation does not mention to add
, 1, 0,
); in C++
You can also create aSystemDialogusing QML. Before you can create aSystemDialogin QML, you must import thebb.system 1.0library in your main.qml file.
1.0 in my main.qml file. I can show a SystemDialog, but I have trouble with SystemToast not showing...
01-09-2013 04:37 AM
Ah sorry, I didn't know ! So, thanks you for information !
So, you can try both and check which one works.
Did you add LIBS += lbbsystem in your project.pro ?
01-09-2013 04:49 AM
I can show a SystemDialog, but I have trouble with SystemToast not showing...
This is a known bug, they won't work together in current beta5 SDK: