QML StackView with transparent layers
-
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!
-
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.
-
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!
3/3