Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Multiple layers



  • Hallo. It is possible to use multiple layers as properties in qml like this or somethink like this?

    Text {
            id: root
            layer.enabled: true
            layer {
                effect: DropShadow {
                    color: "#000000"
                }
            }
            layer {
                    gradient: Gradient {
                        GradientStop {
                            position: 0.0
                            color: "#f9e5ab"
                        }
    
                        GradientStop {
                            position: 1.0
                            color: "#f3bd4d"
                        }
                    }
                }
            }
            color: "#ffffff"
        }
    

    Or how I can use multiple effects for one tipe, like Text?
    Thanks and have I good day.


  • Moderators

    Each graphical effect is a separate component, you can combine as many of them as you want. If you need to blend them, use Blend component.


Log in to reply