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

REG: Material elevation in Page header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.9.4
    • Quick: Controls 2
    • None

      I have Page delegate for StackView. Page's header item is Pane with Material.elevation. Init item for StackView is ok, but all items, that pushed after init, will not show elevation (it seems that elevation effect has width=0).

      On 5.9.3 and 5.10.0 all is good.

      main.qml
      import QtQuick 2.9
      import QtQuick.Controls 2.2
      import QtQuick.Controls.Material 2.2
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Tabs")
      
          Component {
              id: comp
              Page {
                  header: Pane {
                      Material.elevation: 6
                      height: 200
                  }
              }
          }
      
          StackView {
              id: stackView
              anchors.fill: parent
              initialItem: comp
          }
      
          MouseArea {
              anchors.fill: parent
              onClicked: stackView.push(comp)
          }
      }
      

       

        1. Init.png
          Init.png
          5 kB
        2. PageHeader.zip
          2 kB
        3. Pushed.png
          Pushed.png
          4 kB
        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
            headhunter Roman Lazurak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes