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

Don't hard-code exceptions for ListElement and Connections in qmljsscopebuilder

XMLWordPrintable

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

      QtCreator contains hard-coded exceptions for QML types that have run-time defined properties, such as Connections and ListElement. This prevents a warning about invalid property names.

      This is not a proper solution. Not only is it wrong (Connections for instance is part of QtQml and not QtQuick), but also does this prevent users from creating their own custom types with such a behavior.

      I propose to add a flag "hasDynamicProperties" to the qmltypes file grammar and respect this in QtCreator. See also this forum thread.

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

            qtqmlteam Qt Qml Team User
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes