We want to make a particular region of a QML rectangle transparent.
In case of QT, to do the same thing, we have used the setMask API of QWidget.
Is there any API in QML which does the same.
What I feel is that we can use the pass the QML rectangle to the QT cpp file and use setMask() API on the rectangle, but will this be possible?
Thanks, Abhijeet Shah
I'm afraid the only way to do it at time is making your own QDeclarativeItem
and using the C++ functions to add a mask to your Item.
Support to masking in plain QML Items was suggested to the QT developers and, as reported, will be released in QtQuick 2.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With