Make background of Quick Controls 2 StackView transparent
-
I've designed an application that has a background image and a StackView in front of it. Some of those views are simply a few buttons with no background, so I would like to see my app's background in these cases. However, all I see now is a white background that comes from the StackView itself.
Is there a way to make this white background transparent? I've tried setting its color property to Qt.transparent, but then my views disappear as well.
-
I've designed an application that has a background image and a StackView in front of it. Some of those views are simply a few buttons with no background, so I would like to see my app's background in these cases. However, all I see now is a white background that comes from the StackView itself.
Is there a way to make this white background transparent? I've tried setting its color property to Qt.transparent, but then my views disappear as well.
-
@ivarec What color property? StackView doesn't have one. Try setting the StackView background to the ApplicationWindow background.
-
StackView
is transparent.
Maybe the items you push onto it are not? -
@Tom_H what do you mean? Something like:
StackView { background: root.background //assuming my ApplicationWindow had id "root" }
I've tried just that and I still get the white background in my StackView.