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. 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.

This tutorial uses a step-by-step approach to build an app from scratch using QML and C++. If you want to take a look at the source code for complete versions of the app, you can download the lightningcrossfadeqml and lightningcrossfadecpp samples and import them into the Momentics IDE. To learn how, see Importing and exporting projects.

Screen showing the Lightning Crossfade sample app on an all-touch device.

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

Last modified: 2015-03-31

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

comments powered by Disqus