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. Is there any Custom widget like the BluePrint or FlowGraph ?

Is there any Custom widget like the BluePrint or FlowGraph ?

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

    is there any Custom widget like the BluePrint or FlowGraph as shown below?
    if not, is there any good idea to realize it? a custom widget inherit from Listbox, and what class should be used to draw the curves?
    Thanks very much!
    !http://fc06.deviantart.net/fs71/f/2014/084/4/9/t6_by_zerodollarz-d7bmcno.png(a)!

    !http://staraban.com/wp-content/uploads/2014/03/unreal-engine-4-blueprint-editor.jpg(b)!

    1 Reply Last reply
    0
    • Chris KawaC Online
      Chris KawaC Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I wouldn't use widgets for that. They are not particularly well with moving, scaling, animating and doing non-rectangular shapes (like the curves).
      I would use a QGraphicsView, "QGraphicsPathItem":http://qt-project.org/doc/qt-5/qgraphicspathitem.html for the curves and maybe "QGraphicsProxyWidget":http://qt-project.org/doc/qt-5/qgraphicsproxywidget.html for the boxes.
      You would get move, scale etc. implementing very little yourself.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        arsinte_andrei
        wrote on last edited by
        #3

        please check "here":http://qt-project.org/doc/qt-4.8/graphicsview-diagramscene.html
        http://qt-project.org/doc/qt-4.8/graphicsview-diagramscene.html

        it should do what you want..

        1 Reply Last reply
        0
        • O Offline
          O Offline
          opengpu
          wrote on last edited by
          #4

          thank you.
          and i met another problem.
          i can add some controls on a dialog, and then setWidget() this dialog to the QGraphicsProxyWidget. it works.
          BUT, i want to use the QGraphicsItem as a "layout"(which i can render the backgound by myself), and i add directly add some controls(eg. label, editbox, etc) on it...and then i can add some QGraphicsItem on the QGraphicsProxyWidget.
          is there any way to do this?
          ps. i tried to do like this, but still not works. the link is : http://qt-project.org/forums/viewthread/47596/

          1 Reply Last reply
          0
          • O Offline
            O Offline
            opengpu
            wrote on last edited by
            #5

            ...

            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