Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76025 Specify the QML language and write a QML-to-C++ compiler
  3. QTBUG-101634

Add builtin types for 8 and 16bit integers, as well as unsigned 32bit

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Fix Version/s: 6.5
    • Component/s: QML: Compiler
    • Labels:
    • Platform/s:
      All

      Description

      We've various properties that link to unsigned values in a model. Under certain conditions, the QML processing stops when using them.

      The attached minimum example compiles with these messages:

      Warning: main.qml:12:42: Type "quint16" of property "count" not found. This is likely due to a missing dependency entry or a type not being exposed declaratively.
          readonly property int count: Message.count
                                               ^^^^^
      Warning: main.qml:12:42: Could not compile binding for count: Cannot load property count from Message of Message.
          readonly property int count: Message.count
                                               ^^^^^
      Warning: main.qml:18:40: Property "arg" not found on type "void"
                  text: qsTr('Messages: %1').arg(win.count)
                                             ^^^
      Warning: main.qml:18:40: Could not compile binding for text: Type QJSPrimitiveValue of void does not have a property arg for calling
                  text: qsTr('Messages: %1').arg(win.count)
                                             ^^^
      

      When running it breaks with:

      qrc:/msg/main.qml:22:13: Unable to assign [undefined] to QString
      

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-101634
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              qtqmlteam Qt Qml Team User
              Reporter:
              cajus Cajus Pollmeier
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes