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

reduce set of known types to import set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: QML: Tooling
    • Labels:

      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

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            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