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

visibility changes while state changes are broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.8.6, 5.0.0, 5.3.1, 5.4.0 RC
    • None
    • All

    Description

      If we are using states to change the visiblity on parent and childitem the visibilty can not come back.

      In the example video we have the red button as direct visibility inverter. The green button is our state switch button. After we changed the state one time to State1 and back to base state the visiblity inverter does not have any effect anymore.

      Sorry for the bad quality in the video, but you can try it with the code from the zip file.

      The bug was triggered by a problem in the QmlDesigner.

      old Summary: "State view does not update correctly"

      old Description

      # Open tests\manual\qml\testfiles\states.qml from Creator's sources.
      # Switch to Design mode.
      # Select State1.
      # Select the rect element.
      # Uncheck and then check "Visible".
      # Select the image1 element.
      # Uncheck and then check "Visible".
      # Select the base state
      # Select the rect element.
      # Uncheck and then check "Visible".
      The state view will not show the image anymore, neither for the base state nor for State2:
      !states.png!
      

      Attachments

        1. QTBUG-40333.zip
          0.9 kB
        2. states.png
          states.png
          14 kB
        3. visibility_and_state_changes.mp4
          232 kB

        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
              rlohning Robert Löhning
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes