Results 1 to 2 of 2

Thread: What class to use for a network diagram

  1. #1
    Join Date
    Apr 2015
    Posts
    28
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default What class to use for a network diagram

    I'm making a small application that analyzes networking equipment such as enterprise routers and switches. A would like a network topology diagram in the GUI as a widget, but I'm not sure what widget(s) to use and what to re-implement. Preferably the user should be able to interact with the items in the diagram (move them with the connections still attached, hover over items and so on), but a static image is fine if it's to much work. I once used a QCanvas, back in Qt3 I think, but that class seems to be gone by now.

    Example of a network topology I want to draw: https://psychohistory.files.wordpres...ology_2013.png

    I use PyQt5. I've looked a bit on QGraphicsView, QGraphicsScene, but I'm not sure if there's a better way? Suggestions?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: What class to use for a network diagram

    In a QtWidgets based application definitely QGraphicsView.

    Cheers,
    _

Similar Threads

  1. QT Class Hierarchy Diagram for 5.2
    By nuliknol in forum Qt Programming
    Replies: 1
    Last Post: 28th April 2014, 13:25
  2. Replies: 1
    Last Post: 3rd December 2012, 10:57
  3. QT Class Hierarchy Diagram
    By graciano in forum General Discussion
    Replies: 1
    Last Post: 13th May 2009, 14:20
  4. Class Diagram
    By graciano in forum Newbie
    Replies: 1
    Last Post: 16th January 2009, 21:08
  5. separate Qt class diagram
    By juanrb in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2008, 20:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.