[Interest] Custom QQuickItem with Mouse area
Jérôme Godbout
jerome at bodycad.com
Fri Feb 6 00:43:25 CET 2015
Hi, I'm trying to create a custom QItem by enabling flag ItemHasContent to true and defining the updatePaintNode() function. It work well and it's fast even for large number of item, 2d points to create a shape. But the mouse area for those draw item are the whole bounding rectangle containing the item. Is there a way to create a mask image of the rendered item to filter mouse event based on the Item draw pixel? or is there a better way to only trigger mouse event only on Item draw area (alpha <1)?
Thanks, Jerome
More information about the Interest
mailing list