Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-379

Document usage of JavaSript functions in .ui.qml files

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • QDS 1.2.0
    • QDS 1.1.0
    • Documentation
    • None
    • bc623f4178081735ff83119e9a474dfef8b4d8f1 (qt-creator/qt-creator/4.8)

    Description

      We need to document which JavaScript functions are supported in QDS 1.1.

      Its most functions from

      http://doc.qt.io/qt-5/qtqml-javascript-functionlist.html

      And the translations functions.

      List of supported functions in .ui.qml files:

      "qsTr", "qsTrId", "qsTranslate",
      "qsTrNoOp", "qsTrIdNoOp", "qsTranslateNoOp"

      "toString", "toFixed", "toExponential", "toPrecision", "isFinite", "isNaN", "valueOf", "toLowerCase", "toLocaleString"
      "toLocaleLowerCase", "toUpperCase", "toLocaleUpperCase", "substring" , "charAt", "charCodeAt", "concat", "endsWith", "includes", "indexOf", "lastIndexOf"_

      Functions from the 'Qt' scope (http://doc.qt.io/qt-5/qml-qtqml-qt.html):

      _"lighter", "darker", "rgba", "tint", "hsla", "hslv"
      "point", "rect", "size", "vector2d", "vector3d", "vector4d", "quaternion" "matrix4x4", "formatDate", "formatDateTime", "formatTime"_

      Additional all functions of the 'Math' and 'Date' object are supported.

      This should be documented in http://doc.qt.io/qtcreator/creator-quick-ui-forms.html.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            leenam Leena Miettinen
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes