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. Dropshadow Opacity Problem
Forum Updated to NodeBB v4.3 + New Features

Dropshadow Opacity Problem

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 1.1k 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.
  • jondoeJ Offline
    jondoeJ Offline
    jondoe
    wrote on last edited by jondoe
    #1

    Hello,
    I have 1 rectangle and this rectangle transparent black. When I dont using drop shadow my transparent black rectangle working good but when i using drop shadow my transparent black rectangle changing to flat black and opacity not working. What problem here ? how can i fix it ? Thank you

    Codes here

    Rectangle {
    id:borderbottom
    smooth: true
    x: 1
    y: topmenuback.height
    width: topmenuback.width
    height: 10
    opacity: 0.1
    color: "#CC000000"
    }

                DropShadow {
                    anchors.fill: borderbottom
                    horizontalOffset: 10
                    verticalOffset: 10
                    radius: 8.0
                    samples: 17
                    color: "#CC000000"
                    source: borderbottom
                }
    
    1 Reply Last reply
    0
    • jondoeJ Offline
      jondoeJ Offline
      jondoe
      wrote on last edited by
      #2

      Help please :(

      1 Reply Last reply
      0
      • ODБOïO Offline
        ODБOïO Offline
        ODБOï
        wrote on last edited by
        #3

        @jondoe hi

         Rectangle {
            id:borderbottom
            smooth: true
            x: 1
        
            width: 50
            height: 50
            opacity: 0.1
            color: "#CC000000"
            layer.enabled: true
            layer.effect: DropShadow {
                anchors.fill: borderbottom
                horizontalOffset: 10
                verticalOffset: 10
                radius: 8.0
                samples: 17
                color: "#CC000000"
                source: borderbottom
            }
            }
        
        1 Reply Last reply
        3

        • Login

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