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

Disable specific qml compiler warnings (f.e. [import]) or code lines

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.0
    • 6.5
    • QML: Compiler
    • None

    Description

      From: https://forum.qt.io/topic/161409/disable-specific-qml-compiler-warnings-f-e-import-or-mark-an-area-in-qml-file/2

      In Qt 6.5.2 we get a lot of qml compiler warnings with QtQuick.Controls in combination with runtime style selection (qtquickcontrols2.conf).

      import QtQuick.Controls

      Warnings occurred while importing module "QtQuick.Controls": [import]
      Warning: QtQuick.Controls uses optional imports which are not supported. Some types might not be found. [import]

      Is it in general possible to silence specific warning types like [import] but show the rest?
      Or silence single code lines and blocks ? Something like "// qmlc disable"

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            majorronk Sebastian Knorr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes