Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27585

Button height changing doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 7.0.0
    • Quick / QML Support
    • Ubuntu 20.04.3 LTS
    • Linux/X11

      Button height doesn't change for the second button if I click it, but if we add some number to make it non equal to parent.height then it works as needed (the first button).

      Button {
          text: "VALUE: " + background.height
      
          background: Rectangle {
              id: background
              color: "blue"
              height: parent.down ? (parent.height - 5) : (parent.height + 0.00000001)
          }
      }
      
      Button {
          text: "VALUE: " + background2.height
      
          background: Rectangle {
              id: background2
              color: "yellow"
              height: parent.down ? (parent.height - 5) : (parent.height)
          }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            cocojambo Vitaliy S
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes