Is it possible to replicate/mirror the inside content of a transparent rectangle
-
Hi all.
i am making a zoom button program in qml.
On how i have designed it is that I have divided my application window into 2, on the left hand side I have a image, and on top of it is a zoom button. Now, on pressing the zoom button, a transparent rectangle is generated on top of this image that gives the user the ability to drag it all over the image.
What i am not able to achieve is to mirror the same on the right side. What i am looking forward is to crop/mirror the inside of the transparent rectangle, wheresoever i drag the rectangle on the left image, on the right i should see the content that the transparent rectangle covers, but i am not able to do it.Currently, I am using 5.12 version of qt.
if anyone has a solution/alternative for the same, please do let me know. -
Hello all,
I was able to complete the project. For this project as i required the need to replicate/mirror the area enclosed under the transparent rectangle, I made the use of ShaderEffectSource along with grabToImage which helped me to get what I was trying to achieve out of this project.Let me know if someone requires the code to checkout.
Thank you!