Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20794

Missing Design-Time checks for QML enumeration properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.6.2
    • Quick / QML Support
    • Windows

    Description

      https://doc.qt.io/qt-5/qml-enumeration.html For backwards compatibility, the enumeration value may also be specified as a string, e.g. "AlignRight". This form is not recommended for new code.

      Currently QtCreator does not mark invalid enumeration values, when using the suggested assignment for new code from the documentation.
      However, the old way of assigning a string value to an enumeration receives error checking.
      See attached image

      We should include error checking for the recommended enumeration assignments aswell.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              toms toms
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes