Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [SOLVED]MouseArea not rectangular, fit like opacitymask

    QML and Qt Quick
    2
    3
    627
    Loading More Posts
    • 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.
    • K
      kolegs last edited by

      I was wondering if it's possible to make non rectangular mousearea witch fit with image parent.

      I want to get similar effect to opacitymask but using mousearea as a source and image as a sourcemask.

      Is it possible?

      1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators last edited by

        Hi,

        Check out the maskedmousearea example in <QtDir>/quick/customitems on your system. It should be somewhere on the web too.

        157

        1 Reply Last reply Reply Quote 0
        • K
          kolegs last edited by

          Exactly what I was looking for.
          Thanks

          1 Reply Last reply Reply Quote 0
          • First post
            Last post