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. [solved] problem with the DropShadow
Forum Updated to NodeBB v4.3 + New Features

[solved] problem with the DropShadow

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.2k 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.
  • A Offline
    A Offline
    Abdeljalil
    wrote on 18 Sept 2014, 18:24 last edited by
    #1

    i created a DropShadow for an image, but i want it to be like a gradient not a solid color:
    !http://i.imgur.com/FAJG17f.png(IMG)!
    the code:
    @DropShadow
    {
    anchors.fill: background
    source: background
    horizontalOffset: -50
    verticalOffset: 0
    radius: 8.0
    samples: 16
    color: "#000000"
    }
    @

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasRicardo
      wrote on 19 Sept 2014, 07:22 last edited by
      #2

      Hey, i had the same problem. Try it so:
      @
      DropShadow
      {
      anchors.fill: background
      source: background
      horizontalOffset: -50
      verticalOffset: 0
      radius: 8.0
      samples: 16
      color: "#000000"
      transparentBorder: true
      }
      @
      I don't know why but it helps :)

      **Sorry for my english :)

      PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Abdeljalil
        wrote on 19 Sept 2014, 09:27 last edited by
        #3

        the shadow now is gone :-(

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dasRicardo
          wrote on 19 Sept 2014, 10:32 last edited by
          #4

          @
          Rectangle {
          width: 640
          height: 480
          color: "white"

              Rectangle {
                  id: blackRect
                  width: 200
                  height: 50
                  color: "red"
                  visible: false
              }
          
              DropShadow {
                  id: shadow
                  anchors.fill: blackRect
                  horizontalOffset: 0
                  verticalOffset: 5
                  radius: 12
                  samples: 24
                  spread: 0.0
                  color: "#000000"
                  transparentBorder: true;
                  source: blackRect
              }
          }
          

          @

          **Sorry for my english :)

          PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dasRicardo
            wrote on 20 Sept 2014, 19:10 last edited by
            #5

            PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT’S SOLVED.

            **Sorry for my english :)

            PLEASE ADD [SOLVED] TO YOUR THREAD TITLE IF IT'S SOLVED.**

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Abdeljalil
              wrote on 21 Sept 2014, 11:19 last edited by
              #6

              thank you guys

              1 Reply Last reply
              0

              1/6

              18 Sept 2014, 18:24

              • Login

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