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
Developer
Posts: 35
Registered: ‎05-18-2011
My Device: BlackBerry 10 Dev Alpha, Blackberry 9700
My Carrier: -
Accepted Solution

standard qml Rectangle

Hello!

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

Retired
Posts: 499
Registered: ‎05-07-2012
My Device: developer
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

 

Regular Contributor
Posts: 51
Registered: ‎06-29-2011
My Device: Z10 Limited Edition
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?
Highlighted
Retired
Posts: 499
Registered: ‎05-07-2012
My Device: developer
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

New Developer
Posts: 64
Registered: ‎01-14-2011
My Device: Priv, 9810, PlayBook, 9000, 8820
My Carrier: AT&T

Re: standard qml Rectangle

Should I assume that, if an app requires drawing of a few shapes such as rectangles with rounded corners as part of its functionality (or circles or whatever) -- not heavy graphics, just a few shapes here and there -- then Cascades is simply not an appropriate framework for that app?