Unsolved The best way of creating a HexagonView?
-
I have to implement a
GridView
alternative, which will lay out items in a honeycomb-like manner. It has to be interactive, soQQuickPaintedItem
will be too expensive.
Should I simply fork theGridView
implementation or is there are easier way? -
I would do is at follows: extend
QQuickPaintedItem
for hexagon items on C++ side and simpleItem
with 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.
-
Looks like a
Repeater
with a manual positioning andQQuickPaintedItem
for hexagon'sOpacityMask
is the easiest solution.