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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Contributor
Sonic_Spring
Posts: 27
Registered: ‎05-18-2011
My Carrier: -
Accepted Solution

standard qml Rectangle

Hello!

Can I use standard qml elements (like Rectangle) in my cascades-application?

Please use plain text.
BlackBerry Development Advisor
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Carrier: developer

Re: standard qml Rectangle

You can use anything for which there is a bb::cascades C++ equivalent.

You can't mix in Qt UI objects.

 

Stuart

 

Please use plain text.
Contributor
beemaster
Posts: 35
Registered: ‎06-29-2011
My Carrier: Ukraine GSM

Re: standard qml Rectangle

Can I create standard QML application for upcoming blackberry OS, which has single QML file like this?

import QtQuick 1.1

Rectangle {
anchors.fill: parent
color: "lightblue"

Image {
anchors.fill: parent
souce: "assets/images/flower.png"
}
}

This code is crossplatform and runs on Windows/Linux/Mac/Nokia/Android.
Does blackberry 10 support this? Can I create a project like this?
Please use plain text.
BlackBerry Development Advisor
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Carrier: developer

Re: standard qml Rectangle

You can use Qt QML instead of Cascades if that is appropriate for your project.

You give up the deep integration with the OS and the signature Blackberry experience provided through Cascades.

 

Stuart

Please use plain text.