Tutorial: Create your first Cascades app

One of the nice things about Cascades is the flexibility that it provides. You can create your app using the C++ APIs that come with Cascades, or you can implement your UI declaratively using QML and JavaScript.

There isn't a right answer when deciding between the two solutions; it's more about what you're comfortable with. Building your UI using QML can be easier and faster than C++, and QML allows you to preview your UI in the Momentics IDE for BlackBerry. On the other hand, you might be more familiar with C++.

This tutorial shows you how to build the Lightning Crossfade sample, using QML and C++.

The app consists of a background, several images, and a Slider control. As you move the slider, the opacity of one of the images decreases, revealing another image behind it.

You will learn to:

  • Set up a project
  • Use the tools to build and run an app
  • Add controls and use layouts
  • Use signals and slots
Screen showing the Lightning Crossfade sample app on an all-touch device.

Last modified: 2014-06-24



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

comments powered by Disqus