Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. The best way of creating a HexagonView?
Forum Updated to NodeBB v4.3 + New Features

The best way of creating a HexagonView?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 359 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RazrFalcon
    wrote on last edited by
    #1

    I have to implement a GridView alternative, which will lay out items in a honeycomb-like manner. It has to be interactive, so QQuickPaintedItem will be too expensive.
    Should I simply fork the GridView implementation or is there are easier way?

    1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by IntruderExcluder
      #2

      I would do is at follows: extend QQuickPaintedItem for hexagon items on C++ side and simple Item with placing/movig logic on QML+JS side.

      R 1 Reply Last reply
      0
      • R Offline
        R Offline
        RazrFalcon
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • IntruderExcluderI IntruderExcluder

          I would do is at follows: extend QQuickPaintedItem for hexagon items on C++ side and simple Item with placing/movig logic on QML+JS side.

          R Offline
          R Offline
          RazrFalcon
          wrote on last edited by
          #4

          Looks like a Repeater with a manual positioning and QQuickPaintedItem for hexagon's OpacityMask is the easiest solution.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved