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

REG: Material elevation in Page header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.9.4
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Labels:
      None

      Description

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

       

        Attachments

        1. Init.png
          Init.png
          5 kB
        2. PageHeader.zip
          2 kB
        3. Pushed.png
          Pushed.png
          4 kB

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              headhunter Roman Lazurak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes