Hi there, lots of questions, huh?
I believe there is an error, because your QPaintEngine will never match your condition. Here I had problems because I have OpenGL2 and was comparing only OpenGL. Maybe if you replace && by ||.
@if (painter->paintEngine()->type() != QPaintEngine::OpenGL
|| painter->paintEngine()->type() != QPaintEngine::OpenGL2)@
This path is difficult
[quote author="basil_fawlty" date="1314306305"]
I thought that it might be possible to integrate my own GLWidget, where i define the typical QGLWidget/OpenGL-Functions.I
@
void initializeGL();
void paintGL();
void resizeGL(int width, int height);)
@
Somehow like this:
@
GraphicsView view;
view.setViewport(new MyGLWidget(QGLFormat(QGL::SampleBuffers)));
@
But it isnt working.
[/quote]
Well, there is an example code you can use on the same "link":http://qt.gitorious.org/qt-labs/modelviewer you have pointed. It might be enlightening to you.
As the whys of this strategy, I honestly don't know.
I hope this helps,
Regards,
VitorAMJ