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. Multiple layers
Qt 6.11 is out! See what's new in the release blog

Multiple layers

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 682 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    dmitry1992
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      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