Search by Tags

Partner Demo Image - Qt for Device Creation

 

Compare with Revision




Subscribe for this article updates

Qt for Device Creation

Toradex is a partner of The Qt Company, the entity responsible for Qt development, productization and licensing under commercial and open-source licenses. This partnership is celebrated in the Partner Demo Image - Qt for Device Creation now available for download in the Toradex Easy Installer image format.

To get started buy the Qt runtime from the closest Toradex office and sign-in for a free evaluation version of the Qt IDE.

This Partner Demo Image comes with a wide range of preinstalled Qt Demos, so you can get a first idea of the performance of the device with Qt. It is also pre-configured so you can directly build and deploy other Qt demos and your own applications to the Toradex Module seamlessly.

To get started sign-in for a free evaluation version of the Qt IDE.

Please see also our joint-webinar with The Qt Company.

Qt framework

The Qt framework is one of the most popular Graphical User Interface (GUI) frameworks used in Toradex Modules. Please refer to the Qt Documentation for a comprehensive knowledge base documentation.

Supported Modules

The following Computer on Modules are supported:

  • Apalis iMX6
  • Colibri iMX6
  • Colibri iMX6ULL
  • Colibri iMX7

Supported Displays

While you can use a wide variety of displays and monitors, additional configuration may be required for a specific setup.

A section in the end of this guide provide instructions about display and touch screen configuration.

How to Get Started

This section provides instructions for you to quickly get started with Qt for Device Creation.

Note: The Qt Company provides a guide for Toradex supported modules. Please refer to the Qt Toradex Apalis iMX6 Guide for additional reference.

Load the Toradex Easy Installer on the target module and select the Boot to Qt demo image from the list of available images:


  • Installing Qt for Device Creation using the Toradex Easy Installer

    Installing Qt for Device Creation using the Toradex Easy Installer (click to enlarge)

Note: The Qt Company provides a guide for Toradex supported modules. Please refer to the Qt Toradex Colibri iMX6/iMX6ULL and iMX7 Guide for additional reference.

Load the Toradex Easy Installer on the target module and select the Boot to Qt demo image from the list of available images:


  • Installing Qt for Device Creation using the Toradex Easy Installer

    Installing Qt for Device Creation using the Toradex Easy Installer (click to enlarge)

Install Qt for Device Creation

Qt for Device Creation is a commercial offering from the Qt Company.

  • Download the free evaluation version of Qt for Device Creation Development Tools. If you already have a license, download the Qt installer.
  • Start the installer and login with your account.
  • In the component selection dialog under Qt for Device Creation -> Boot to Qt Software Stack, make sure to select the corresponding Toradex module.

  • Apalis iMX8 Boot to Qt component selection

    Toradex Computer on Module: Boot to Qt component selection (click to enlarge)

Add or remove components after Qt Creator installation

Note: Also make sure to install the Qt Creator and the Boot to Qt Flashing Wizard.

Develop and Deploy Applications

Qt Creator can be used to create Qt applications for Toradex modules and the applications can be directly deployed either over network or USB. When creating a new project, make sure to select the correct kit e.g. "Boot2Qt 5.11.0 Toradex Apalis iMX6" in the kit selection.


  • Qt Creator Kit Selection

    Qt Creator Kit Selection (click to enlarge)

Find the board ip by booting to the default Qt demo and going to options, as illustrated in the screenshots below:


  • Qt Demo: Main Screen

    Qt Demo: Main Screen (click to enlarge)


  • Qt Demo: Settings

    Qt Demo: Settings (click to enlarge)

Alternatively, if you have access to the board debug serial terminal, you can use the Linux ip command-line tool e.g.:

ip addr

To setup a device, in the Qt Creator IDE go to Tools -> Options -> Devices and add a Boot2Qt device with the previously found IP.


  • Boot2Qt Device

    Boot2Qt Device (click to enlarge)

Make sure that the device is correctly assigned to the respective kit, under Tools -> Options -> Kits, as illustrated below:


  • Qt Creator Kit Configuration

    Qt Creator Kit Configuration (click to enlarge)

Linux Host

Warning: Instructions in this documentation assume Ubuntu Linux 64-bit 16.04 LTS or later. Other Linux distributions may work, but have not been tested.

To setup the USB access to the board, it is necessary to enable access to the device from your host computer. In order to do so, one must create a new udev rule

From Qt 5.9 onwards, run the following command

echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="dbdb", TAG+="udev-acl", TAG+="uaccess"' | sudo tee -a /etc/udev/rules.d/70-boot2qt.rules

Warning: Please make sure the udev rule applied is compatible to your Qt version. If you are using an older version, see Qt Documentation

Connect your device to the development host via USB cable. If the device is already connected, disconnect and reconnect the USB cable after running the command above.

Check the USB connector for each carrier board

QtCreator will automatically setup networking over the USB link and the device will appear in the QtCreator's Devices list without need to manually add it.

Windows Host

No extra action is required, the device is recognized by the IDE seamlessly.

Next Steps

For more information about how to develop a Qt Application head over to the extensive Qt documentation.

Display and Touch Screen

Displays and Monitors used in Embedded Systems are available in a myriad of configuration possibilities - resistive, capacitive or without touch, single or multi touch, different resolution, density of pixels, pin-out and clock frequency are some examples.

To make things easy for you, Toradex provides specific instructions on how to use its display offerings as well as comprehensive information about how to interface your custom display or monitor to Toradex modules. Please refer to the table below:

Note: Qt uses libinput as the default touch screen input library. Therefore, for calibration please see the libinput section of the article referred to in the table above.

Qt Licensing Information

Qt is a large framework with different licenses. Licenses also depend on which Qt version is used. Our partner the Qt Company can help you find the right license, therefore if you have questions consult the Qt Licensing page for details or get in contact with Qt.

You are able to purchase your Qt runtime license directly from Toradex. Please contact your local Toradex office.