Results 1 to 4 of 4

Thread: problem with displaing graphs on a Qt canvas

  1. #1
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default problem with displaing graphs on a Qt canvas

    Hello,
    Lets say I'm a newbie.
    I want a good Qt library for displaying simple graphs. I've found quanava library. But there is a problem. When i compiled basic example it looks like graph edges are not painted properly when moving nodes. I don't have any idea where is a bug but this code seems to be rather simple. I think this is a problem with paint method in NodeItem class. Maybe someone has already solved this problem because this library is quite popular.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: problem with displaing graphs on a Qt canvas

    I don't know quanava, but did you notice http://qwt.sourceforge.net/?

  3. #3
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem with displaing graphs on a Qt canvas

    In QWT homepage in screenshots i don't see any graphs (I mean graphs in mathematical sense eg. G=(E,V)). I want to be able to operate in terms of graph theory so I wans to define set of vertilces, edges, be able to define directed or undirected graph etc.

  4. #4
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem with displaing graphs on a Qt canvas

    Ok, I've got some clue. When I zoom graph view then edges are displayed properly.
    So what QGraphicsItem method is fired when zooming (and on Windows also restoring window) and what when dragging and wtat's the difference?

Similar Threads

  1. Graphs in Qt
    By qtlinuxnewbie in forum Newbie
    Replies: 4
    Last Post: 20th February 2010, 12:01
  2. Problem with canvas()->update()
    By jblovloss in forum Qwt
    Replies: 1
    Last Post: 25th August 2009, 14:28
  3. problem with ported canvas example
    By bajarangi in forum Newbie
    Replies: 2
    Last Post: 29th July 2009, 22:30
  4. Best way to draw x,y graphs
    By steg90 in forum Newbie
    Replies: 1
    Last Post: 14th May 2007, 11:52
  5. Drawing graphs
    By steg90 in forum Newbie
    Replies: 4
    Last Post: 9th May 2007, 13:37

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
  •  
Qt is a trademark of The Qt Company.