Hello,
I've got the problem.
This code crashes:
{
this
->setFormat
(QGLFormat(QGL
::SampleBuffers));
}
OpenGlViewer::OpenGlViewer(QWidget *parent): QGLWidget(parent)
{
this->setFormat(QGLFormat(QGL::SampleBuffers));
}
To copy to clipboard, switch view to plain text mode
When I change the code to the following, it doesn't crash anymore:
{
}
OpenGlViewer::OpenGlViewer(QWidget *parent): QGLWidget(QGLFormat(QGL::SampleBuffers),parent)
{
}
To copy to clipboard, switch view to plain text mode
Like you guys I'd like to know the reason of this.
Thank you for your time.
Bookmarks