[Qt-interest] Anyone tried "GraphViz on QT QGraphisview" ?
Velusamy, Baskar
Baskar.Velusamy at chevron.com
Tue Jan 24 08:01:36 CET 2012
Thanks Kevin.
-----Original Message-----
From: Kevin Funk [mailto:krf at gmx.de]
Sent: Thursday, January 19, 2012 2:46 PM
To: qt-interest at qt.nokia.com
Cc: Jaco Naude; Velusamy, Baskar
Subject: Re: [Qt-interest] Anyone tried "GraphViz on QT QGraphisview" ?
On Thursday 19 January 2012, 07:52, Jaco Naude wrote:
> Hi Velusamy
>
> (snip)
> On Thu, Jan 19, 2012 at 4:13 AM, Velusamy, Baskar <
>
> Baskar.Velusamy at chevron.com> wrote:
> > Hi QT Experts
> >
> > I am trying to draw complex directed in QT and planning to use
> >
> > GraphViz for layout. Anyone tried "GraphViz on QT QGraphisview" ?
> > Please
> > give me some directions or please let me know if there are any
> > alternatives.
> >
> > Thanks in advance
> > Bas
Hey there,
we actually have a small wrapper library for GraphViz in GammaRay [1] for
layouting state machines. What it does is feeding GraphViz with nodes and
edges, let it perform the layouting and then paint the items on QGV based on
the calculated bounding rects of the GraphViz structs.
It was initially inspired by the work here [2].
It's not a publicly accessible library, though. It's a thin wrapper around the
GraphViz C-API [3]. In my opinion, if you want to do a bit more complex stuff
with GraphViz+QGV you need to tweak code anyway, and cannot rely on external
libraries.
Note: Check the 4th screenshots on [1] for a first impression of the
look&feel.
[1] http://www.kdab.com/gammaray
[2] http://mupuf.org/blog/article/34/
[3]
https://github.com/KDAB/GammaRay/tree/master/tools/statemachineviewer/gvgraph
Greets
--
Kevin Funk
More information about the Qt-interest-old
mailing list