C
Event Sender: Sending Messages to Applications
With Event Sender, you can send evens to Telltales and Qt Cluster examples and control the rendering in their UI. On the target device, you also need the Message Proxy example. Event Sender does not work as a standalone example.
Event Sender provides a UI for sending events to Telltales and Qt Cluster. You can switch on and off the telltales, change speed and layout in Qt Cluster, and demonstrate the unexpected failure in an application.
For more information, see Testing Safety-Critical Rendering and Events. This topic describes how you can use Qt Cluster together with the Telltales and Event Sender examples to test the rendering and event sending in the safety-critical UI.
Building Event Sender Example
You find the Event Sender example under the Qt Safe Renderer installation folder: <Qt installation directory>/Examples/QtSafeRenderer-<version>/saferenderer/eventsender.
You can build the example for the host platform, QNX, INTEGRITY, and Embedded Linux.
To build and run the project, opent the project in Qt Creator's Edit mode and select Build > Run.
By default, when you select Build > Run in Qt Creator for your project, Qt Creator builds the project, deploys it to the device defined in the kit, and runs it there. However, if you have not made any changes to the project since you last built and deployed it, Qt Creator simply runs it again. For more information, see Building and Running topic in Qt Creator Manual.
Following topics provide target-specific instructions about building projects:
- Building Projects with Qt Creator (the host platform)
- Building for QNX
- Building for INTEGRITY
- How to Create Boot to Qt Image (Embedded Linux)
Example Files
Files:
- saferenderer/eventsender/Button.qml
- saferenderer/eventsender/ButtonHolder.qml
- saferenderer/eventsender/CMakeLists.txt
- saferenderer/eventsender/Car.qml
- saferenderer/eventsender/Connection.qml
- saferenderer/eventsender/Controller.qml
- saferenderer/eventsender/Slide.qml
- saferenderer/eventsender/SlideHolder.qml
- saferenderer/eventsender/ViewChange.qml
- saferenderer/eventsender/datacontrolinterface.h
- saferenderer/eventsender/eventsender.pro
- saferenderer/eventsender/main.cpp
- saferenderer/eventsender/qml.qrc
- saferenderer/eventsender/safeasset.qrc
- saferenderer/eventsender/tcpdatacontrol.cpp
- saferenderer/eventsender/tcpdatacontrol.h
Images:
- saferenderer/eventsender/Application_Logo.png
- saferenderer/eventsender/Icon_Battery_OFF.png
- saferenderer/eventsender/Icon_Battery_OFF_small.png
- saferenderer/eventsender/Icon_Battery_ON.png
- saferenderer/eventsender/Icon_Battery_ON_small.png
- saferenderer/eventsender/Icon_BulbFailure_OFF.png
- saferenderer/eventsender/Icon_BulbFailure_ON.png
- saferenderer/eventsender/Icon_Coolant_OFF.png
- saferenderer/eventsender/Icon_Coolant_OFF_small.png
- saferenderer/eventsender/Icon_Coolant_ON.png
- saferenderer/eventsender/Icon_Coolant_ON_small.png
- saferenderer/eventsender/Icon_Fuel_OFF.png
- saferenderer/eventsender/Icon_Fuel_OFF_small.png
- saferenderer/eventsender/Icon_Fuel_ON.png
- saferenderer/eventsender/Icon_Fuel_ON_small.png
- saferenderer/eventsender/Icon_HazardWarning_OFF.png
- saferenderer/eventsender/Icon_HazardWarning_ON.png
- saferenderer/eventsender/Icon_LowBeam_OFF.png
- saferenderer/eventsender/Icon_LowBeam_ON.png
- saferenderer/eventsender/Icon_ParkingBrake_OFF.png
- saferenderer/eventsender/Icon_ParkingBrake_ON.png
- saferenderer/eventsender/Icon_SeatBelt_OFF.png
- saferenderer/eventsender/Icon_SeatBelt_OFF_small.png
- saferenderer/eventsender/Icon_SeatBelt_ON.png
- saferenderer/eventsender/Icon_SeatBelt_ON_small.png
- saferenderer/eventsender/Icon_TurnLeft_OFF.png
- saferenderer/eventsender/Icon_TurnLeft_ON.png
- saferenderer/eventsender/Icon_TurnRight_OFF.png
- saferenderer/eventsender/Icon_TurnRight_ON.png
- saferenderer/eventsender/Icon_TyreMalfunction_OFF.png
- saferenderer/eventsender/Icon_TyreMalfunction_ON.png
- saferenderer/eventsender/S-Car_BrakesOFF.png
- saferenderer/eventsender/S-Car_BrakesON.png
- saferenderer/eventsender/S-Car_DoorLeftOFF.png
- saferenderer/eventsender/S-Car_DoorLeftON.png
- saferenderer/eventsender/S-Car_DoorRightOFF.png
- saferenderer/eventsender/S-Car_DoorRightON.png
- saferenderer/eventsender/S-Car_HoodOFF.png
- saferenderer/eventsender/S-Car_HoodON.png
- saferenderer/eventsender/S-Car_LowBeamsOFF.png
- saferenderer/eventsender/S-Car_LowBeamsON.png
- saferenderer/eventsender/S-Car_Shape.png
- saferenderer/eventsender/S-Car_TrunkOFF.png
- saferenderer/eventsender/S-Car_TrunkON.png
- saferenderer/eventsender/S-Car_TurnLeftOFF.png
- saferenderer/eventsender/S-Car_TurnLeftON.png
- saferenderer/eventsender/S-Car_TurnRightOFF.png
- saferenderer/eventsender/S-Car_TurnRightON.png
Available under certain Qt licenses.
Find out more.