Non Rectangular Mouse Area. (Triangular or polygon) [Solved]
-
You can write a custom QQuickItem in C++. There is an example called maskedmousearea included in Qt 5.1 which should demonstrate how to do this.
It is also possible to do this in pure QML by handling onPressed and onReleased manually and simply verifying if the mouse area is within your region.
-
Necro asking :)
Is this still the way to go in 2016?
It's seems like the example has vanished in Qt5.5 (probably earlier versions) -
@TOMATO_QT
Thanks!