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. Dynamic block diagram - QGraphicsView, QML ? Where to start ?

Dynamic block diagram - QGraphicsView, QML ? Where to start ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.8k 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.
  • G Offline
    G Offline
    Goofy
    wrote on last edited by
    #1

    Hi QT Forum,
    I'm revamping an old project mde by someone else where there was an area with a dynamic diagram (see image below). In other words, I could move my green blocks and connect inputs/outputs easily.

    Honestly, I do not know where to start. Here are my requirements :

    • Dynamic edition of the diagram (drag & drop, etc).
    • Blocks with inputs/outputs defined by the dev.
    • "Automatic" connection.

    In other words, I want something +/- similar to Labview or GNURadio (for those who know those tools).

    Where should I start ? QGraphicsView ? QML stuff ?

    alt text

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi and welcome
      What about
      http://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html
      It has most of what you need for such editor.

      for

      • Blocks with inputs/outputs defined by the dev.

      For this you need some spec file for each item. Maybe use xml or json for that.
      I assume you already have something in place ?

      1 Reply Last reply
      3
      • G Offline
        G Offline
        Goofy
        wrote on last edited by
        #3

        Hi mrjj,
        Yes, for inputs/outputs, there is a kind of spec file (a simple .txt with inputs/outputs and a few parameters). But, it was left undocumented, Windows-only, etc. So yes, I was thinking about an XML specification file to configure my block.

        Thanks for your link, I'll have a look at it.

        mrjjM 1 Reply Last reply
        0
        • G Goofy

          Hi mrjj,
          Yes, for inputs/outputs, there is a kind of spec file (a simple .txt with inputs/outputs and a few parameters). But, it was left undocumented, Windows-only, etc. So yes, I was thinking about an XML specification file to configure my block.

          Thanks for your link, I'll have a look at it.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Goofy
          Ok. xml or json both very easy to work with in Qt.
          Might be overkill though depending on the spef files complexity.

          C 1 Reply Last reply
          1
          • mrjjM mrjj

            @Goofy
            Ok. xml or json both very easy to work with in Qt.
            Might be overkill though depending on the spef files complexity.

            C Offline
            C Offline
            Christlike
            wrote on last edited by
            #5

            @Goofy how did you solve the dynamic block diagram queries? Please insight on how you implemented the solutions, I am very interested in the subject. Cheers!

            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