05-25-2014 03:14 PM
I'm new to BB10 development and I've been reading over the provided tutorials and reference materials. As the title of my post suggests, I have a very basic question about QML that may have a not so basic answer:
Just what exaclty can QML be used for? The literature in the documentation seems to suggest in places that QML is used for scripting UI elements, while the actual work behind the scenes is done by code written in C++. Other documentation seems to hint that an app can be written in QML, although the only examples I've seen of this are apps that really only showcase UI elements.
I suppose a shorter question would be: can I write a useful app entirely in QML without ever touching C/C++?
On a related note, when someone says they have written the app in "cascades," what are they refering to? Is Cascades the development suite? Is it refering to using QML/C++/QT?
Solved! Go to Solution.
05-25-2014 03:41 PM
You can think of Cascades as an extension to Qt which allows a more sophisticated UI design specifically for BB10 phones.
QML can be thought of, at it's simplest, as a way of describing how you want to place controls on the screen.
A good place to start is the free to download development book...
05-26-2014 02:29 AM
Qt is a library for c++, and it usually has its own UI components like QtQuick.
BlackBerry decided to replace these with their own UI and called it Cascades.
05-26-2014 10:32 AM
The way it's designed is to really encourage separating the UI from the application logic. You use QML/JS to handle all the UI stuff, and do the heavy lifting in C++. It's certainly possible to work entirely in QML/JS, or entirely in C++. It depends a lot on your preferences.
You can write a useful app entirely or almost entirely in QML. There are some features of Cascades that aren't exposed to QML, and some you just wouldn't want to use there, but you can go a long way without doing any real C++ work.
05-26-2014 11:40 AM
05-26-2014 12:15 PM
05-26-2014 01:57 PM
05-26-2014 06:41 PM
05-26-2014 06:58 PM
05-28-2014 01:04 AM
Thank you to everyone that's contributed so far! Your responses, along with some of my own tinkering with QML, have really put into perspective how BB10 development works!