Hi,
I saw that in the Qt 5.0 QWindow class Documentation [doc-snapshot.qt-project.org] it says:
An application will typically use QWidget or QQuickView for its UI, and not QWindow directly. Still, it is possible to render directly to a QWindow with QBackingStore or QOpenGLContext, when wanting to keep dependencies to a minimum or when wanting to use OpenGL directly. The Raster Window and OpenGL Window examples are useful reference examples for how to render to a QWindow using either approach.
Is there an alternative to QWindow to use with OpenGL >4.1?
I intend to use that display window as a central widget of a QMainWindow. Can QGLWidget be used with OpenGL >4.1, and if yes, will QGLWidget class be supported in Qt 5?
I am trying to avoid QWindow as it can’t be set as a central widget in a QMainWindow and it seems to be a lightweight version of QMainWindow which inherits from QWidget (while QWindow inherits from QObject).
-Thanks.
Comment: perhaps I could use QGraphicsScene/QGraphicsView?
↧