Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. display ListView on z-axis (front-to-back) possible?
Forum Update on Monday, May 27th 2025

display ListView on z-axis (front-to-back) possible?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 187 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • anotherChrisA Offline
    anotherChrisA Offline
    anotherChris
    wrote on last edited by
    #1

    I just installed Lubuntu on my computer and am trying to modify the login screen. I have never used QML or QtQuick before, and I have very limited experience with coding and mark-up.

    I note that QML's Listview can be Horizontal (x-axis) or Vertical (y-axis), but I would like to display a list of items on top of each other (basically, z-axis) so that focusing on each displays it (basically, on top of the others).

    I'm guessing this can't be done with Listview and that I have to create multiple Rectangle layers on top of each other and then somehow display or hide them (but not sure how that would be done), but that seems like a very clunky solution.

    Any advice about this?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jkimmy
      wrote on last edited by
      #2

      This is typically done using a StackView with Push() and Pop(). You can override the default transitions to achieve the effect you desire. See https://doc.qt.io/qt-5/qml-qtquick-controls2-stackview.html#replace-method.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved