Results 1 to 2 of 2

Thread: Draw curves using QPaint or opengl?

  1. #1
    Join Date
    Apr 2011
    Posts
    58
    Thanks
    1

    Default Draw curves using QPaint or opengl?

    Hi.

    I've to draw curves and waves like that of a voice signals.
    Which is better? To use QPaint to draw or openGL to draw these wavy curves?
    I plan to have lots of them open. So, performance is really very critical for me.

    Thanks for any pointer.
    Marc

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Draw curves using QPaint or opengl?

    If you are good with OpenGL, then go for OpenGL.
    If not, you could also try QGrphicsView with an OpenGL viewport.
    A QPainter is also an option.
    What is "better" is very dependent on your requirements, which you didn't really specify.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. draw transparent buttons on top of an opengl graphicsview
    By billconan in forum Qt Programming
    Replies: 0
    Last Post: 7th November 2009, 20:38
  2. Cylinder draw using QT opengl functions
    By YuriyRusinov in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2008, 23:58
  3. Replies: 4
    Last Post: 9th May 2008, 21:56
  4. Replies: 2
    Last Post: 14th April 2008, 11:03
  5. Replies: 5
    Last Post: 18th March 2008, 16:11

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.