The best way of creating a HexagonView?
-
I have to implement a
GridViewalternative, which will lay out items in a honeycomb-like manner. It has to be interactive, soQQuickPaintedItemwill be too expensive.
Should I simply fork theGridViewimplementation or is there are easier way? -
I would do is at follows: extend
QQuickPaintedItemfor hexagon items on C++ side and simpleItemwith placing/movig logic on QML+JS side. -
I'm not sure it's possible. I'm using a model as a source and I have to receive events from it. It's not just about placing.
-
I would do is at follows: extend
QQuickPaintedItemfor hexagon items on C++ side and simpleItemwith placing/movig logic on QML+JS side.Looks like a
Repeaterwith a manual positioning andQQuickPaintedItemfor hexagon'sOpacityMaskis the easiest solution.