Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-3862

SafeRenderer 2.1.0 examples fail to qmllint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Moved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.10
    • General
    • None
    • All, Linux/X11

      Summary

      Linting qml examples for QSR 2.1.0 produces errors.

      The Problem

      Trying to apply qmllint to the `indicators` example, the following errors occur:

      #~/Qt/Examples/QtSafeRenderer-2.1.0/saferenderer/indicators|> qmllint MainForm.ui.qml 2>&1 | head
      Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import]
      Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import]
      Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import]
      Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import]
      Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import]
      Warning: MainForm.ui.qml: QQuickItem was not found. Did you add all import paths? [import]
      Warning: MainForm.ui.qml:35:9: unknown grouped property scope font. [unqualified]
              font.family: "Lato"
              ^^^^
      Warning: MainForm.ui.qml:52:9: unknown grouped property scope font. [unqualified]

      The compilation runs properly, only qmllint fails.

      Workaround/possible solution:

      add `QtQuick` dependency for QSR's `qmldir`:

      #> echo "depends QtQuick" >> ${QML_IMPORT_PATH}/Qt/SafeRenderer/qmldir

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

            teemu.holappa Teemu Holappa
            svostrikov-scout Sergii Vostrikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes