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

reduce set of known types to import set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.0
    • 6.0
    • QML: Tooling

    Description

      Code like this not cause any problem for qmllint:

      import QtQuick 2.11
      import QtQuick.Window 2.3
      
      
      Text {
          opacity: 1 - Tumbler.displacement
      }
      

      but if run this code I get bunch of warnings:

      unknown:24: qrc:/utils/TumblerDelegate.qml:6: ReferenceError: Tumbler is not defined
      

      This is because of code missed "import QtQuick.Controls 2.4", but qmllint failed to notice this.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes