diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2012-12-12 20:11:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-07 10:44:02 +0100 |
commit | 077ad5f30446f6b3ccc38cb7f05897566f8e5eb7 (patch) | |
tree | dec3a47d3c2589b91299c2cbf975de041ed3b8bd /examples/quick/scenegraph/customgeometry/main.cpp | |
parent | b58eb5239452d282b7209784274714b25f530a3c (diff) |
Documentation for scene graph examples.
Change-Id: Idb39fc0b6d5e538b90ae8a0b98d9f4d77e1fb617
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'examples/quick/scenegraph/customgeometry/main.cpp')
-rw-r--r-- | examples/quick/scenegraph/customgeometry/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/quick/scenegraph/customgeometry/main.cpp b/examples/quick/scenegraph/customgeometry/main.cpp index ea699c1c36..f2ec27d229 100644 --- a/examples/quick/scenegraph/customgeometry/main.cpp +++ b/examples/quick/scenegraph/customgeometry/main.cpp @@ -52,6 +52,9 @@ int main(int argc, char **argv) qmlRegisterType<BezierCurve>("CustomGeometry", 1, 0, "BezierCurve"); QQuickView view; + QSurfaceFormat format; + format.setSamples(16); + view.setFormat(format); view.setSource(QUrl("qrc:///scenegraph/customgeometry/main.qml")); view.show(); |