Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. OpacityMask

OpacityMask

Scheduled Pinned Locked Moved Unsolved Brainstorm
1 Posts 1 Posters 406 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.
  • J Offline
    J Offline
    JeromeUPLA
    wrote on last edited by
    #1

    Hello everyone,

    first of all, I would like to apologize for my poor level of English ;)

    I have a question about OpacityMask in QT Designer.

    I have 2 pictures ( a Image1 and a Mask ), And I want to move the mask on the picture.
    I need to make the image appear gradually, and use a specific mask picture.

    But when I use OpacityMask, it doesn't take into account the position of my mask. The two pictures are always aligned.

    Actually I want to do like this :

       Image {
            id: picture1
            x: 0
            y: 0
            source: "Assets/picture1.png"
            visible: false
        }
       Image {
            id: picture1_Mask
            x: 10
            y: 0
            source: "Assets/picture1_Mask.png"
            visible: false
        }
       OpacityMask {
        id: result
        source: picture1
        maskSource: picture1_Mask
    }
    

    I want to see my picture on [0-10] in this example and start the mask at 10.

    Does anyone have a solution for my problem?
    Thanks

    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