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

anchors: null warnings are redundant

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: