C

Touch: Safe Touch

The Touch example demonstrates how you can implement Safe Touch in your application and test it on your host platform.

The Touch example demonstrates how you can implement Safe Touch in your application and test it on your host platform. You can use the example as a standalone application.

There are two different ways Safe Touch can be used. The first is by using the Safe Touch event. This event contains information about two things, the x and y coordinates and the state of the item. With the x and y coordinates, the safe renderer checks which item is pressed and after that, what is the current state of the item (pressed or released).

An alternative way is to use the Safe Item Touch event. This event contains the item ID that is manually given from the user's application logic to the safe renderer process along with the state of the item. The safe renderer checks and tracks if the item is pressed or released.

In the Touch example, the Safe Touch event is used, and the states are default (released) and pressed.

Building and Running Touch Example

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:

Example Files

Files:

Images:

Available under certain Qt licenses.
Find out more.