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

'invalid property name' if QtQuick is imported before QtQuick.Controls

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • Qt Creator 4.11.0
    • Quick / QML Support
    • None
    • Windows

      I noticed that QML syntax check (CTRL+SHIFT+C) gives suspicious 'invalid property name' if QtQuick module is imported before QtQuick.Controls.

      The error is not shown if QtQuick module is imported after QtQuick.Controls.

      You can easily see the issue loading the "QtQuick TableViews Example - Pixelator" example and adding

      import QtQuick.Controls 2.12

      after

      import QtQuick 2.12

      and running CTRL+SHIFT+C

       

      I don't know if this can happen because an old "QtQuick 1" TableView is implemented in QtQuick.Controls 1 and this can confilct with QtQuick 2 TableView implemented in QtQuick module.

      See 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
            -vix- ERNESTO VIGANO' (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes