QGLWidget, QGLFormat and QGLContext have been removed in Qt6. The closest replacement to QGLWidget is a QOpenGLWindow combined with QWidget::createWindowContainer, however overlays are now longer included by default. The alternative QOpenGLWidget renders to a framebuffer and is apparently not fully compatible with Coin. QSurfaceFormat differs in some settings, e.g., accumulation buffers are no longer supported.
The function QWindowContainer::containedWindow for accessing the QOpenGLWindow from the QWidget used throughout the SoQt API is not public, therefore the corresponding pointer is stored inside a SoQtGLArea property of the widget.
Fixes qt_generate_moc to add Qt include directories necessary for the QT_VERSION definition.
Tested on MSVC 2019, Ubuntu 20.04, and macOS 10.14 with 6.0.0 binaries provided by Qt.
QGLWidget
,QGLFormat
andQGLContext
have been removed in Qt6. The closest replacement toQGLWidget
is aQOpenGLWindow
combined withQWidget::createWindowContainer
, however overlays are now longer included by default. The alternativeQOpenGLWidget
renders to a framebuffer and is apparently not fully compatible with Coin.QSurfaceFormat
differs in some settings, e.g., accumulation buffers are no longer supported.The function
QWindowContainer::containedWindow
for accessing theQOpenGLWindow
from theQWidget
used throughout the SoQt API is not public, therefore the corresponding pointer is stored inside aSoQtGLArea
property of the widget.Fixes
qt_generate_moc
to add Qt include directories necessary for theQT_VERSION
definition.Tested on MSVC 2019, Ubuntu 20.04, and macOS 10.14 with 6.0.0 binaries provided by Qt.
Requires updated sogui, see https://github.com/coin3d/sogui/pull/2.