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

QtCreator breaks autocompletion when using namespaced QML_ELEMENTS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 12.0.1
    • Quick / QML Support
    • None
    • All

    Description

      See the two attached projects. One is using namespace and one is not.

      IMPORTANT: Open the namespaced version first, you will see no autocompletion. As soon as you open the second none namespaced version, autocompletion will also work for the first project. My guess is that is, because they both share the same class names.

       

      See my comment in the main.qml of the namespaced project:

              // Start writing this:
              // -> App.test.
              // What we want:
              // -> App.test.testVariant
              // or
              // -> App.test.myFunc()
              // This will work after we open the none namespaced
              // project once. This also will work when we clode the
              // none namespace project. This will not work when
              // opening only the namespaced project

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            kelteseth Elias Steurer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes