Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103529

Support for value type lists is rather broken in qmlsc/qmlcachegen

    XMLWordPrintable

Details

    • 70da741404 (qt/qtdeclarative/dev) 70da741404 (qt/tqtc-qtdeclarative/dev)

    Description

      Consider:

      pragma Strict
      import QtQml
      
      QtObject {
          property list<rect> rectList: [ Qt.rect(1,2,3,4), Qt.rect(5,6,7,8), Qt.rect(9,10,11,12) ]
          property list<string> stringList: ["aaa", "bbb", "ccc"]
          property list<int> intList: [5, 6, 7, 8]
      
          property var rectInBounds: rectList[0]
          property var rectOutOfBounds: rectList[32]
          property var stringInBounds: stringList[1]
          property var stringOutOfBounds: stringList[33]
          property var intInBounds: intList[2]
          property var intOutOfBounds: intList[34]
      }
      

      None of this works right now.

      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
              ulherman Ulf Hermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes