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

QML engine stops reporting reference errors

    XMLWordPrintable

Details

    • All

    Description

      This must be the weirdest bug, like ever...

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      
      Window {
          visible: true
      
          // doesn't need to be an inline component, normal component also works
          component TestButton: Button {
              // when the following line exists no reference errors for the application will be reported
              background.opacity: 0.5
          }
      
          TestButton {
              // this property references something non-existing so it should cause a reference error
              property bool normallyCausesReferenceError: test
      
              background: Item {}
          }
      }
      

      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
            mleutelt Martin Leutelt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes