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. Select intersect between two layers
Forum Update on Monday, May 27th 2025

Select intersect between two layers

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 799 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.
  • H Offline
    H Offline
    herlarbee
    wrote on 20 Aug 2016, 09:16 last edited by
    #1

    In photoshop, there's a feature that allows for selecting intersect between two layers. How can this be achieved in qml.
    Ps: I intend to crop out the intersection as a new qml element and discard the other part. Any help

    R 1 Reply Last reply 22 Aug 2016, 06:06
    0
    • H herlarbee
      20 Aug 2016, 09:16

      In photoshop, there's a feature that allows for selecting intersect between two layers. How can this be achieved in qml.
      Ps: I intend to crop out the intersection as a new qml element and discard the other part. Any help

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 22 Aug 2016, 06:06 last edited by
      #2

      @herlarbee
      you mean something like masking?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • H Offline
        H Offline
        herlarbee
        wrote on 23 Aug 2016, 12:02 last edited by
        #3

        I've initially intended to provide a solution similar to whatsapp profile page image selection.
        My approach was this;

        1. create a zoom-able square object with drag and drop functionality as well as pinch area support that has a color set to transparent and a well defined border width which overlays the uploaded picture
        2. Drag and pinch the square object to fit the desired parts of the picture
        3. Determine the x,y width and height of the square object and use in cropping the image in C++
        4. use QQuickImageProvider to load the image to the new redirect page
        5. Use opacity mask to create a circular image for the already square image

        This entire solution looks like a hack though
        I hope and think there should be a better way but I'm not yet able to wrap my head around a better way though.

        Thanks for the concerns

        1 Reply Last reply
        0

        1/3

        20 Aug 2016, 09:16

        • Login

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