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. Dynamically create Rectangles grid for Maze-like structure
Forum Updated to NodeBB v4.3 + New Features

Dynamically create Rectangles grid for Maze-like structure

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 220 Views 1 Watching
  • 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.
  • SebastianMS Offline
    SebastianMS Offline
    SebastianM
    wrote on last edited by SebastianM
    #1

    Hi,
    I would like to create maze like structure in QML. As C++ side perform generation I would like to also create QML visual object in C++.
    Most of examples relies on using QML files with single elements (link) - building whole grid with it sound doable.
    Then I need to add walls, not all fields are drawn (so not full rectangular grid), parent/child hierarchy, objects lifetime, etc.
    Is it reasonable and feasible? What are solutions for dynamically generated content in QML?

    PS: What came to my mind - as a possible solution - is to use QAbstractTableModel and put all work on delegates. Drawing rectangle, walls, doors, creatures, loot, etc.

    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