QML Global Object

The QML JavaScript host environment implements the following host objects and functions. These are built in and can be used from any JavaScript code loaded in QML, without additional imports:

  • The Qt object: This object is specific to QML, and provides helper methods and properties specific to the QML environment.

  • qsTr(), qsTranslate(), qsTrId(), QT_TR_NOOP(),