Results 1 to 2 of 2

Thread: Best way to draw x,y graphs

  1. #1
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Best way to draw x,y graphs

    Hi,

    Just some advice needed as to best way to draw x,y graphs and to scroll them. The graph would be in realtime and scroll along the x-axis.

    In MFC I just store the y-coords in a buffer and use MoveTo and LineTo to draw the lines to an offscreen device context then blit the whole lot to the screen. Works ok in MFC, just wondering what is good way in Qt4?

    Regards,
    Steve

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Best way to draw x,y graphs

    You can do it the same way, just substitute MFC calls with QPainter calls.

  3. The following user says thank you to wysota for this useful post:

    steg90 (14th May 2007)

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.