Fixing parameters reloaded when testing camera. Also fixed app freezing when closing Preferences dialog after using test camera dialog

This commit is contained in:
matlabbe
2026-07-03 01:28:18 -07:00
parent 405be6675a
commit 0b18ede2fb
5 changed files with 69 additions and 11 deletions
+6
View File
@@ -53,6 +53,12 @@ int main(int argc, char * argv[])
QSurfaceFormat::setDefaultFormat(QVTKRenderWidget::defaultFormat());
#endif
// Recommended by VTK when using QVTKOpenGLNativeWidget (a QOpenGLWidget): let all VTK
// render widgets share a single OpenGL context, which is needed for correct rendering
// when render widgets live in / move across multiple top-level windows. Must be set
// before QApplication is constructed.
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
#ifdef RTABMAP_PYTHON
rtabmap::PythonInterface pythonInterface;
#endif