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

StackView: pushing the already topmost item visually clears the stack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.8.0 RC
    • 5.7.0
    • Quick: Controls 2
    • None
    • Windows 7 64bits
      Qt 5.7.0
    • 1bcd068c082b3fab92637686447c2c82b4a0968c

      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" }
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes