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

[REG] Quick Item.state behavior changed from 5.14

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes