PDA

View Full Version : Diagramming Toolkit using QT



arjoshi
30th June 2007, 18:18
Greetings fellow QT'ians:

I have a question concerning QT and its use in building a diagramming toolkit - such as for example a UML Modeling Tool or a graph editor.
Is this possible using QT?
Are there any examples?
Which classes should I refer to in order to start thinking about building a tool such as the aforementioned?

I would greatly appreciate your help.

Regards
- AJ

fullmetalcoder
30th June 2007, 18:24
I have a question concerning QT and its use in building a diagramming toolkit - such as for example a UML Modeling Tool or a graph editor.
Is this possible using QT?
Are there any examples?
Which classes should I refer to in order to start thinking about building a tool such as the aforementioned?
Everything is possible using Qt :D Except maybe cooking but that hasn't been proved yet... :rolleyes:
If I remember well Umbrello uses KDE libs which are built on top of Qt... As for classes themselves I would recommend the QGraphicsView framework. The examples will certainly help you to handle the relationships between various elements that compose a diagram (I'm especially thinking about the Elastic Nodes).

Brandybuck
30th June 2007, 22:43
Yes it is possible. Use QGraphicsView, which is a canvas-style widget perfect for these kinds of graphics. Qt 4.3.0 even includes a mini-flowchart example, "diagram scene".