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

Qt Creator gets confused by merged QML imports

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • Qt Creator 2.7.0
    • Quick / QML Support
    • None
    • Windows 8 x64, Qt 5.0.2 (SDK, OpenGL)

    Description

      This is valid QML, which runs as expected:

      import QtQuick 2.0 as Project
      import QtMultimedia 5.0 as Project
      
      Project.Rectangle {
          width: 100; height: 50
      
          Project.Audio {
              source: "music.wav"
              autoPlay: true
          }
      }
      

      However, "Project.Rectangle" will be underlined in red, and autocomplete will not work for the Rectangle type.

      If the order of the imports is swapped, then "Project.Audio" will have the red underline lose autocomplete functionality.

      Attachments

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

        Activity

          People

            mabenell Marco Benelli
            jksh Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes