Making an editable flowchart in Qt/C++

前端 未结 2 751
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-09 08:59

I\'m working on making a editable flowchart and I\'m having a lot of issues conceptually with Qt. I\'ve tried many different ways of implementing classes ranging from QTre

相关标签:
2条回答
  • 2021-02-09 09:07

    There is a Diagram Scene Example which uses the Graphics View framework to make flowchart diagrams. It is an application in which you can add flowchart shapes and text and connect the shapes by arrows. The shapes, arrows, and text can be given different colors, and it is possible to change the font, style, and underline of the text.

    You can take a look at the code and see how to create custom graphics items and handle mouse events and movement of items.

    0 讨论(0)
  • 2021-02-09 09:23

    You can use QCustomPlot library. It has support for rectangle and other shaped items and lines etc. It will just make your work lot easier.

    http://www.qcustomplot.com/

    0 讨论(0)
提交回复
热议问题