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

qmllint: duplicate-property-binding false positive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 6.8
    • QML: Tooling
    • None

    Description

      Consider

      import QtQuick
      
                  Rectangle {
                      id: rect
                      anchors.centerIn: parent
                      color: "#09102b"
                      radius: parent.size - parent.gray * parent.size
                      implicitWidth: radius
                      implicitHeight: radius
      
                      ColorAnimation on color {
                          id: colorAnimation
                          running: false
                          to: "#41cd52"
                          duration: 1500
                      }
                  }
      
      

      We have both a direct binding and a ValueSource on color, but it turns out that this is fine: The binding is constant, and the value source is initially not active / running.

      Note that it would still be an issue if one of the conditions above would not hold true.

      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
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes