You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the screen area OpenGL draws into does not align with the window area. There is an offset of about [-11, 11] pixels (seen from the top left), hence the black borders on the top and right (I changed the clear color to red in ShapeDemo). OpenGLWindow::geometry() reports 0, 0, 1280, 720 relative to the main window (which is correct, in theory).
Using Qt 5.9.1 on Windows 10 x64 with Visual Studio 2017.
The text was updated successfully, but these errors were encountered:
Removing the explicit call to QWindow::create() from the constructor of OpenGLWindow and lazily initializing the context seems to fix this. This is the way it is demonstrated in the Qt OpenGLWindow example (http://doc.qt.io/qt-5/qtgui-openglwindow-example.html). What was the rationale for doing it differently?
For some reason, the screen area OpenGL draws into does not align with the window area. There is an offset of about [-11, 11] pixels (seen from the top left), hence the black borders on the top and right (I changed the clear color to red in
ShapeDemo
).OpenGLWindow::geometry()
reports0, 0, 1280, 720
relative to the main window (which is correct, in theory).Using Qt 5.9.1 on Windows 10 x64 with Visual Studio 2017.
The text was updated successfully, but these errors were encountered: