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

Drawer does not respect inset/padding during open/close animation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.9.0
    • None

    Description

      I created a drawer and set an insert and padding value to the edge it is attached to:

          Drawer {
              edge: Qt.TopEdge
              topInset: 20
              topPadding: 20
      

      Those values are respected when the drawer is open:

      However, during the opening and closing animation, they are ignored. This leads to very interesting visual behavior especially when using an own window decoration with shadow border around the window, as the drawer appears out of nowhere:

      Please find a minimal example demonstrating the issue in the attachment. The transition animations have been slowed down for better demonstration, but it happens with default values as well.

      Setting y or anchors values for the drawer does not work, neither does setting the new SafeArea. The only workaround I found is to remove the animation or make it so quick that one cannot see it happening.

      This was tested with Qt 6.9.0 on Linux/Wayland, but is most likely to behave identical on all platforms.

      Attachments

        1. drawer.tar.gz
          2 kB
          Markus Bader
        2. open.png
          6 kB
          Markus Bader
        3. opening.png
          9 kB
          Markus Bader
        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
            moerkb Markus Bader
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes