PDA

View Full Version : Draw curves using QPaint or opengl?



marc2050
26th April 2011, 05:58
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

high_flyer
27th April 2011, 08:46
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.