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

StackView: pushing the already topmost item visually clears the stack

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.8.0 RC
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Windows 7 64bits
      Qt 5.7.0
    • Commits:
      1bcd068c082b3fab92637686447c2c82b4a0968c

      Description

      Test case:

      • StackView with redRect as initial item
      • Push redRect again
      • Stackview is displayed empty (although depth is 2)
      import QtQuick 2.7
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          id: mainWindow
          visible: true
          StackView
          {
              id: stackView
              anchors.fill: parent
              initialItem: redRect
          }
          Button
          {
              anchors.centerIn: parent
              text: "Push"
              onClicked:  stackView.push(redRect)
          }
          Rectangle { id: redRect; color: "red" }
      }
      

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-57266
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              yoann Yoann Quenach de Quivillic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes