Results 1 to 5 of 5

Thread: Diagram Painting

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Diagram Painting

    Hi all! It's the first time I write in this great forum, I'm developing a KDE app which manages dogs genealogies, calculates some indicator like percentage of blood, inbreeding coefficient..., manages a recursive tree showing family relationships through QTreeView and so on.

    Now I want to add an option which draws a pedigree diagram, I suppose in a QGraphicsScene and the possibility to be printed or exported in some common format like PDF (but this is a second step).

    I tried to start something with the available Qt classes, but I thought it can be really difficult to manage a deep tree with lot of generations. I know there are lot of APIs, commonly referred as "Graph API" which can help in this.

    Is there something related to Qt which can help me ?
    Where can I start from ? Do you have any advice ?

    Thanks in advance,
    Alex

  2. #2
    Join Date
    Oct 2010
    Posts
    37
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Diagram Painting

    I haven't used it but http://qwt.sourceforge.net/ looks like what you're asking for

  3. #3
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Diagram Painting

    Hi,

    I need some sort of graph too, but didn't find one I could use in Qt. So started to write something myself. You can find it here : Mindmapping widget.

    It can handle tree-like graphs of any complexity, but is still in an infant stage. Maybe you could get some hints from it if you would want to write something yourself too.

    For the output, you could also use Graphviz as an external tool. Then you need to describe your graph in the 'dot' language, and run dot to generate a bitmap that you can then use for printing or so.

    Best regards,
    Marc
    Last edited by marcvanriet; 1st November 2010 at 23:55.

  4. #4
    Join Date
    Oct 2010
    Posts
    37
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Diagram Painting

    aha, look at the graph example in Qt. It does a network style graph which you can use.

  5. #5
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Diagram Painting

    Genjix,

    What example are you talking about ? The diagramscene example doesn't have any loading or saving if that's the one you mean.

    Anyway, I now also found the 'qanava' or 'libqanava' project. Seems to be abandoned though : QAnava at freshmeat. I have a problem building it however. jom fails on the first line in the makefile.

    Best regards,
    Marc

Similar Threads

  1. simple % curve diagram.
    By janEUcitzen in forum Qwt
    Replies: 3
    Last Post: 27th March 2009, 09:16
  2. Class Diagram
    By graciano in forum Newbie
    Replies: 1
    Last Post: 16th January 2009, 21:08
  3. separate Qt class diagram
    By juanrb in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2008, 20:55
  4. needle diagram
    By darksaga in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2008, 12:01
  5. Flow Diagram
    By fruzzo in forum Newbie
    Replies: 5
    Last Post: 2nd December 2007, 19:45

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.