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.

inside custom component

Native Development

Reply
Contributor
Sonic_Spring
Posts: 35
Registered: ‎05-18-2011
My Device: BlackBerry 10 Dev Alpha, Blackberry 9700
Accepted Solution

standard qml Rectangle

Hello!

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

BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: 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

 

Regular Contributor
beemaster
Posts: 51
Registered: ‎06-29-2011
My Device: Z10 Limited Edition

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?
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: 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