Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QML StackView with transparent layers
QtWS25 Last Chance

QML StackView with transparent layers

Scheduled Pinned Locked Moved Solved General and Desktop
qmlstackviewtransparent
3 Posts 2 Posters 2.2k 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.
  • M Offline
    M Offline
    Mark81
    wrote on 10 Mar 2016, 09:43 last edited by
    #1

    Hi! I'm working on a simple project using Qt 5.5, QtQuick 2.5 and QtQuick.Controls 1.4.
    In the main QML Window I placed a StackView which pushes some other items. These have a transparent background.

    I was expecting to see the whole stack through the items. Instead a see just the currentItem with a white background.
    Which property of which component I should set to achive this?

    Thanks!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leonardo
      wrote on 13 Mar 2016, 02:26 last edited by
      #2

      Hi. There's no right way to do this, but after inspecting StackView's source code I came up with the following code:

      StackView {
      	delegate: StackViewDelegate {
      		function transitionFinished(properties){
      			properties.exitItem.visible = true
      		}
      	}
      }
      

      Please, bear in mind this is using private properties and there's no guarantee it'll work in future releases.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mark81
        wrote on 13 Mar 2016, 16:21 last edited by
        #3

        Thank you very much for your help. I'm going to find another way to avoid this "borderline" situation. Anyway I think it will be a nice to have feature!

        1 Reply Last reply
        0

        1/3

        10 Mar 2016, 09:43

        • Login

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