Support for Qt in Cascades

Although the BlackBerry 10 OS supports the entirety of Qt, there are some parts of Qt that a Cascades app does not support. If you're interested in learning about how to port a Qt app to BlackBerry 10, see Porting Qt apps. Otherwise, continue reading to learn more about what's supported in Cascades.

Qt 4.8 support

The foundation of Cascades is made up of a handful of core Qt modules. These modules provide developers with many essential, non-visual classes and objects.

Notable exceptions to the list of supported modules are QtGui and QtQuick. Because Cascades provides its own UI framework, this mostly precludes the usage of these modules for building a UI. However, this does not mean that the QtGui and QtQuick modules are not supported - but care must be taken to be able to use them correctly. For more information about how to use QtQuick components in a Cascades app, see Supported QML libraries.

The following modules are fully supported in a Cascades app.

QtCore

The QtCore module contains core non-GUI functionality and provides the basis for all other Qt modules.

QtNetwork

The QtNetwork module provides classes to make network programming easier and portable. For more information about networking in Cascades, see Networking.

QtSql

The QtSql module provides support for retrieving and managing SQL data.

QtXml

The QtXml module provides a stream reader and writer for XML documents, and C++ implementations of SAX and DOM.

Qt Mobility support

Cascades also supports a number of Qt Mobility 1.2 modules. As of Qt 4.8, Qt Mobility was still a separate project, though this is not the case in Qt 5.0 and later.

The Qt Mobility features that Cascades supports are as follows:

Bluetooth

For Bluetooth, Cascades uses a subset of the Qt Connectivity module. For a list of the APIs that are supported by Cascades, see QtConnectivity.

Location

Cascades uses a subset of the Location module called QtLocationSubset. This module provides APIs for location positioning, mapping, and navigation. In addition to the core functionality, Cascades provides its own location APIs that are specific to BlackBerry 10. For information about implementation details for Cascades, see Location.

NFC

For NFC, Cascades uses a subset of the Connectivity API called QtNfcSubset. To supplement the core functionality in this module, Cascades provides its own NFC APIs that are specific to BlackBerry 10. For information about implementation details for Cascades, see Near Field Communication.

Sensors

To access data from various hardware sensors on the device, Cascades supports the Sensors module in its entirety, except for a few APIs. To see the complete list of sensors APIs supported by Cascades, see QtSensors. For information about implementation details for Cascades, see Sensors.

Last modified: 2015-03-31



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus