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

Missing Design-Time checks for QML enumeration properties

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes