C
Qt Safe Renderer Examples
After you have installed Qt Safe Renderer, you find the Qt Safe Renderer examples under <Qt installation directory>/Examples. Qt Safe Renderer provides the following examples:
Example | Target platform | Example Path | Description | Build via .pro File |
---|---|---|---|---|
Indicators | A host platform | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/indicators | Indicators demonstrates how you can create a safety-critical UI with Qt Quick Designer and how you can quickly test it on your host platform. | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/indicators/indicators.pro |
Monitor | A host platform and QNX | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/monitor | Monitor demonstrates how you can verify the rendering output of the Indicators example. | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/monitor/monitor.pro |
Localization | A host platform, QNX, and INTEGRITY | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/localization | Localization demonstrates how you can localize content in safety-critical elements. | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/localization/localization.pro |
Telltales | A host platform, QNX, and INTEGRITY | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/telltales | Telltales demonstrates how you can include Qt Safe Renderer into an application that contains both safety-critical UI elements and non-safety UI elements. Telltales also demonstrates how the safety-critical rendering is done on a separate process. The example uses Qt Cluster's layout files. | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/saferenderer.pro |
Qt Cluster | QNX and INTEGRITY | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/qtcluster | Qt Cluster demonstrates rendering on QNX and INTEGRITY and recovery from the main UI failure. | <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/qtcluster/qtcluster.pro |
You can use Indicators for testing how to add new Qt Safe Renderer UI elements in the UI form with Qt Quick Designer.
For more information about examples, see the following topics:
- Indicators: Creating Safety-Critical UI
- Monitor: Verifying the Rendering Output
- Localization: Localize Safety-Critical Content
- Telltales: Rendering Safety-Critical UI
- Qt Cluster: Rendering on QNX and INTEGRITY
- Running Examples on QNX
- Running Examples on INTEGRITY
- Testing the Messaging Interface
Note: The example code that is part of the Qt Safe Renderer installation does not fully follow the MISRA C++ guidelines.
Building and Running the Examples
You find the instructions for building the examples under the platform specific topics that are listed in Building Qt Safe Renderer.
In order to build and run the examples, you must have Qt 5.15.x and Qt Creator 4.15.0 or later installed on the host platform.
Available under certain Qt licenses.
Find out more.