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

Regression: build warnings of missing properties

    XMLWordPrintable

Details

    • Windows

    Description

      Note: the issue appears to only occur when building with MSVC, the example application can be built without problems on MinGW.

      Description:

      There is a regression when upgrading from Qt 6.5.8 to 6.5.9.

      If you take the attached example application and build it:

      • Qt 6.5.8: build is clean without warnings.
      • Qt 6.5.9: every readonly property in Constants.qml throws a warning.

      (See the attached logs)

      Example of a warning:

      Warning: Main.qml:5:39: Member "windowDefaultWidth" not found on type "QObject" [missing-property]
          width: Const.Constants.dimensions.windowDefaultWidth
                                            ^^^^^^^^^^^^^^^^^^

      The application runs correctly in both cases, but for a large project the build logs become unreadable due to unnecessary warnings.

      Attachments

        1. 6_5_8.txt
          6 kB
          Otto Ryynänen
        2. 6_5_9.txt
          8 kB
          Otto Ryynänen
        3. QTBUG-137983.zip
          3 kB
          Otto Ryynänen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            ottoryynanen Otto Ryynänen
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes