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

Cannot generate efficient code for array of color

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 6.9
    • 6.7.2
    • QML: Compiler
    • None
    • All

    Description

      Creating a list of color in QML, like so:

          property list<color> colors: [ "#0F0", "orange", "#FF0000"|#0F0", "orange", "#FF0000" ]

      warning: Cannot generate efficient code for storing an array in a non-sequence type

      The same is true for accessing an index of said list: colors[1]

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            javier.cordero Javier Cordero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes