Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. How can I display an interactive family tree-style graph in PyQt6?
Forum Updated to NodeBB v4.3 + New Features

How can I display an interactive family tree-style graph in PyQt6?

Scheduled Pinned Locked Moved Unsolved Qt for Python
pythonqt for python
2 Posts 2 Posters 174 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.
  • W Offline
    W Offline
    wayfarer
    wrote last edited by
    #1

    For context, my intention is to create an expandable/collapsible horizontal visualization of interlinked documents using a tree diagram that looks very similar this, where the documents spread outward from a single root and contain unqiue index numbers as well as possible descriptions which should be displayed below and inside the rectangular nodes, respectively. There should also be special handling for links that loop back to earlier spots on the tree, without drawing lines all the way back there (perhaps displaying those nodes in a different color).

    This is the closest thing I've found to what I'm looking for in the documentation, but it has a vertical structure and doesn't meet my visualization requirements.

    I've also been experimenting with Graphviz, but the image output isn't interactive and I haven't figured out how to make the structure horizontal, so I'm not sure if it will suit my needs.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      Hi and welcome to devnet,

      One thing you could use is QTransposeProxyModel to turn the model 90 degrees. However it will likely not show things as you want.

      The second option is for you to implement your own view that draws cells the way you want.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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