408-754-4176 | info@reachtech.com

by Reach Technology

QML Viewer

Configuration Options

At startup, the QML Viewer reads a file called /application/src/settings.conf.

The settings.conf has the following configuration options:

main_view="./content/mainview.qml"

This is the path to the main QML file.

socket_path="/tmp/tioSocket"

This is the path to the TIO Agent socket file.

enable_ack="false"

This option enables lookup acknowledgements. There are four ACK codes returned by the QML Viewer.

  • LUOK – Look Up OK. The QML Viewer found the object and set the property.
  • LUNO – Look Up No Object. The QML Viewer could not find the object.
  • LUNP – Look Up No Property. The QML Viewer found the object but could not set the property.
  • SYNERR – Syntax Error. The messages was not in objectName.property=value format.
hearbeat_interval="0"

 

  • With this enabled the QML Viewer will send out a ping message at the specified interval. The interval is in seconds. If the QML Viewer does not receive a pong message before the next interval the QML Viewer will emit a noHearbeat signal the the running QML. If the QML Viewer does receive a pong message the QML Viewer will emit a heartbeat signal. This allows the executing QML code to exchange heartbeats with an external device.
full_screen="true"

 

  • Run the QML Viewer in Full Screen mode.
hide_curosr="true"

 

  • Hide the window cursor.

Console Output

If you need to see the QML Viewer console output, use these commands from the display module debug console to restart the QML Viewer:

killall qml-viewer
export QWS_MOUSE_PROTO=tslib:$TSLIB_TSDEVICE
/application/bin/qml-viewer -qws

The console output will then be visible on the debug console.