summaryrefslogtreecommitdiffstats
path: root/examples/opengl
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-08-22 10:53:59 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-08-24 23:01:39 +0200
commita0cc43fbc843a51849757ec452b5595256ae22c9 (patch)
tree0284a39ebd9f2949a9f249719e0dc37c2e16e6b9 /examples/opengl
parente3e4fe79100162a9fc47b923fe23d1a296cd67d1 (diff)
Set a size in qopenglwindow example
Use showMaximized(). Just calling show() without setting a size can result in a zero-sized, invisible window on some platforms. Change-Id: Ifa48258060e3d651c2fac3a1409a26a2c3db6bdb Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'examples/opengl')
-rw-r--r--examples/opengl/qopenglwindow/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/qopenglwindow/main.cpp b/examples/opengl/qopenglwindow/main.cpp
index a67bcbb2e3..bf95d09ecd 100644
--- a/examples/opengl/qopenglwindow/main.cpp
+++ b/examples/opengl/qopenglwindow/main.cpp
@@ -185,7 +185,7 @@ int main(int argc, char **argv)
fmt.setDepthBufferSize(24);
fmt.setStencilBufferSize(8);
window.setFormat(fmt);
- window.show();
+ window.showMaximized();
return app.exec();
}