diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-10-22 19:00:31 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-10-31 07:27:05 +0000 |
commit | b75babc6ae3f0fd48d6f09f1feab7b517d078cb3 (patch) | |
tree | bf319a2cc672dc62423b9944bf6bf45ebba75352 /src/opengl/doc/snippets/code/src_opengl_qglbuffer.cpp | |
parent | 7087a68fbf42799eb2d11bc072b63033ae58e8b4 (diff) |
QGLWidget: Prevent premature platform window creation
Passing Qt::MSWindowsOwnDC along with the window flags to the QWidget
constructor results in creating a native window as part of the base
class initialization.
By deferring the window creation to later in the QGLWidget construction,
the meta object reflects the actual class.
Change-Id: I51343c767057d6841331614b93ad860fe99d65e3
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/opengl/doc/snippets/code/src_opengl_qglbuffer.cpp')
0 files changed, 0 insertions, 0 deletions