Skip to content

InlineViewHeader: Emulate OverlayHeader using Transform

Kai Uwe Broulik requested to merge work/kbroulik/inline-heder-sticky-grid into master

There is no GridView.headerPositioning, so a GridView header always scrolls away, cf. QTBUG-117035

Use a Transform and scroll the headerItem together with the view, to make sure the header sticks.

Conveniently, through GridView attached property this will only be done when in a GridView (obviously) and when it is the headerItem's root, not if you put it in a wrapper (then you're on your own).


@ratijas

  • Wallpaper header is now sticky
  • Notification event list still looks fine
  • Probably needs a bit more testing with topMargin and friends?

Screenshot_20230923_212745

Edited by Kai Uwe Broulik

Merge request reports