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

qmllint fails when WebView is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.5
    • 6.4.3
    • QML: Tooling, WebView
    • None
    • Tested on Arch Linux and on macOS with Mac Mini M2 Pro.
    • Android, iOS/tvOS/watchOS, Linux/X11

    Description

      When running qmllint against files which use WebView it will fail on most (all?) platforms.

      Using the following test file, I get different warnings on different platforms:

      import QtQuick
      import QtWebView
      
      Item {
          WebView {
          }
      }
      

      On Android and iOS I get the following:

      Warning: Test.qml: QQuickItem was not found. Did you add all import paths?
      Warning: Test.qml:5:5: Type WebView is used but it is not resolved
          WebView {
      

      On Linux I get this:

      Warning:Test.qml:2:1: Warnings occurred while importing module "QtWebView":
      import QtWebView
      ^^^^^^
      ---
      Warning: /usr/lib/qt6/qml/QtWebChannel/plugins.qmltypes:15:37: Meta object revision and export version differ.
      Revision 0 corresponds to version 0.0; it should be 1.0.
      
      ---
      

      qmllint is excuted as follows:

      Android:
      /opt/Qt/6.4.3/gcc_64/bin/qmllint --bare -I /opt/Qt/6.4.3/android_arm64_v8a/qml/ Test.qml
      
      iOS:
      qmllint --bare -I ~/Qt/6.4.3/ios/./qml Test.qml
      
      Linux:
      /usr/lib/qt6/bin/qmllint Test.qml
      or:
      /usr/lib/qt6/bin/qmllint --bare -I /usr/lib/qt6/qml Test.qml
      

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            knutt Knut Tidemann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: