Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103284

qmlcompiler: Prefixed imports get overriden by implicitly imported type

    XMLWordPrintable

Details

    Description

      If you have a type Foo of the module Bar and a file called Bar.qml in the same directory (which gets imported implicitly)

      This code

      import Foo as Foo
      
      Foo.Bar {}
      

      will result in a version of your local Bar getting created instead of Foo's Bar.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            max.goldstein Maximilian Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes