Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Need advices for building simulator for algorithms on Graph
Forum Update on Monday, May 27th 2025

Need advices for building simulator for algorithms on Graph

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 321 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.
  • L Offline
    L Offline
    Long Ph. Le
    wrote on last edited by
    #1

    I want to simulate the way that a vaccum cleaner robot cleaning on an unknown room. The room will be presented as a 2D grid graph and i will use different algorithms to planning and finding the "solution" for the robot to clean the room as much as possible. So I want to try this with C++ and Qt for building an cross platform application. I just learned basic Model/View and signal/slot concepts in Qt but still dont have any experience in developing Qt application before. I target my app to simulate on a large graph (about 10000 nodes) so the optimization on render and design structure is neccessary. My approach is i will present the map in GraphicsView, each Node will be a GraphicsItem, but how can i seperate the Model and View in this situation? Does i need to create a GraphModel inherited from QAbstractItemModel to manage and control Nodes in the graph? Or can anyone give me some advices for better approach? I just learned about Qt for about 2 weeks and still be new, if u guys can, please explain ke I'm 5.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • L Long Ph. Le

      I want to simulate the way that a vaccum cleaner robot cleaning on an unknown room. The room will be presented as a 2D grid graph and i will use different algorithms to planning and finding the "solution" for the robot to clean the room as much as possible. So I want to try this with C++ and Qt for building an cross platform application. I just learned basic Model/View and signal/slot concepts in Qt but still dont have any experience in developing Qt application before. I target my app to simulate on a large graph (about 10000 nodes) so the optimization on render and design structure is neccessary. My approach is i will present the map in GraphicsView, each Node will be a GraphicsItem, but how can i seperate the Model and View in this situation? Does i need to create a GraphModel inherited from QAbstractItemModel to manage and control Nodes in the graph? Or can anyone give me some advices for better approach? I just learned about Qt for about 2 weeks and still be new, if u guys can, please explain ke I'm 5.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Long-Ph.-Le please don't double post, just be patient for any answer to come up...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      • Login

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