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

    • All
    • 03ff348b4 (dev)

    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

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

          Activity

            People

              ulherman Ulf Hermann
              cajus Cajus Pollmeier
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes