[solved] Image with rounded corner
-
Hello guy,
I'm new to QML and I would like to add border to my image. My border also have to be a circle with my image inside of it. I've tried some code that I found in other topics but nothing fit for what I want.
To explain my self better here an example of what I want.
I have this:
!http://img4.hostingpics.net/pics/947080tonystark2.jpg(Before)!and I want this:
!http://img4.hostingpics.net/pics/409322tonystark2.png(After)! -
Hi,
You can do it with "opacitymask":http://qt-project.org/doc/qt-5.0/qtgraphicaleffects/qml-qtgraphicaleffects1-opacitymask.html#example
-
Thanks a lot, that's what I was looking for.
-
That's great :) You can mark the post as solved. Just edit the title and prepend [solved]