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

anchors: null warnings are redundant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.5
    • 6.3.0
    • Quick: Other

      We already have a generic warning for assigning null to properties that don't support it, so we warn twice:

      file:///home/max/qt-dev/dev.build/Foo.qml:3:34: Invalid property assignment: unsupported type "QQuickAnchorLine" - Assigning null to incompatible properties in QML is deprecated. This will become a compile error in future versions of Qt.
      QQmlApplicationEngine failed to create component
      file:///home/max/qt-dev/dev.build/Foo.qml:3:16: Cannot assign value null to property horizontalCenter
      

      Let's remove the specialized warning and just keep the generic one.

        For Gerrit Dashboard: QTBUG-102980
        # Subject Branch Project Status CR V

            qtqmlteam Qt Qml Team User
            max.goldstein Maximilian Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes