
Sat, 02/08/2025 - 13:35
Sorry, this might be more of a QT question than OCC, but here goes...
I've embedded my OccView (via QOpenGLWidget) into a QDockWidget (using mostly sample code).
All is well: it views, it resizes, generally happy bunny.
BUT - any attempt to un-dock the widget results in an exception being thrown:
Aspect_GraphicDeviceDefinitionError. OpenGl_Window::CreateWindow: ChoosePixelFormat failed. Error code: 6
Ultimately, I see that QOpenGLWidget::InitializeGL() is being re-called the moment the window is undocked - which is probably causing the error. However, if I knobble this to a one-time only call, it just results in a dead window being shown with the passive error:
QOpenGLWidget: No fbo, cannot render
Does anyone have any clues as to what maybe going on, or where to start looking?
Mat