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

Regression of ListModel enum properties in 5.13

    XMLWordPrintable

Details

    Description

      Given the following snippet in Modes.qml:

      QtObject {
          enum Modes {
              ModeA = 1,
              ModeB = 2
          }
      }

      Using Qt 5.12 the following snippet is valid, however not in Qt 5.13:

      ListModel {
          ListElement { key: Modes.ModeA; value: "A" }
          ListElement { key: Modes.ModeB; value: "B" }
      } 

      Causing the following error:

      cannot use script for property value
      

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jdub Jan Willem van Silfhout
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes