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 ?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.8k Views 3 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.
  • G Offline
    G Offline
    Goofy
    wrote on 2 Nov 2016, 09:25 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 2 Nov 2016, 09:29 last edited by mrjj 11 Feb 2016, 09:34
      #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 2 Nov 2016, 09:46 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.

        M 1 Reply Last reply 2 Nov 2016, 09:51
        0
        • G Goofy
          2 Nov 2016, 09:46

          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.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 2 Nov 2016, 09:51 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 16 Apr 2019, 20:45
          1
          • M mrjj
            2 Nov 2016, 09:51

            @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 16 Apr 2019, 20:45 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