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

[REG] Quick Item.state behavior changed from 5.14

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.14.2, 5.15.1
    • None
    • Linux/X11, Windows

      Item.state behavior changed from 5.14.

      There are 2 States("left", "right") and a bool flag(leftMode).
      Qt 5.14 and 5.15 change state from "right" to "left" via empty("") state.

      property bool leftMode: true
      
      states: [
          State {
              name: "left"
              when: leftMode
          },
          State {
              name: "right"
              when: !leftMode
          }
      ]
      

      How to reproduce

      • qmlscene main.qml

      Expected behavior(5.13 and before)

      qml: state: left
      qml: state: right
      qml: state: left
      qml: state: right
      qml: state: left
      qml: state: right

      Actual behavior(5.14 ant 5.15)

      qml: state: left
      qml: state: right
      qml: state:
      qml: state: left
      qml: state: right
      qml: state:
      qml: state: left

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            takumiasaki Takumi Asaki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes