[Qt-interest] OpenGL inside QT with accelaration
Mic J
michael.cognacc at gmail.com
Fri Jul 3 17:36:56 CEST 2009
> Dear Mic,
> If you want to do OpenGL in Qt, just use a QGLWidget. You subclass it
> and put inside it all OpenGL code you write yourself,
> 95% of which
> should be portable to just about any other OpenGL situation. (See
> QGLWidget docs for where to put what kind of code.)
Yes i written my code until now in "pure" OpenGL,
And i use a QGLWidget.
> Hardware acceleration is not something you need to set up within your
> app; it's something you need to set up on your system. If your system
> OS/hardware can use OpenGL hardware acceleration, Qt will use it. Is
> this what you were asking?
Yes :)
But then i dont understand the way the documentation says it.
the docs says, using QPainter the OpenGL will use the HW accelaration
if it exists.
and otherwise falls back to using software.
!This is not a direct quote of the documentation!!
But that is true for openGL also isnt it?
Its not an attribute of QPainter?
So whats the difference/advantage of using QPainter?
regards mic
Nathan
More information about the Qt-interest-old
mailing list