Examples1

From Qt Labs

Jump to: navigation, search

[edit] Examples I

[edit]

ARGB

This example shows how to create ARGB windows. Meaning windows which can be drawn to using transparent brush and will in turn be transparent. The example loads an SVG file and renders its contents in a transparent window, then adds a checkbox that makes it show/hide an icon in the upper right corner.
svn://labs.trolltech.com/svn/graphics/dojo/argb

Image:argb.png

[edit]

Bezier

This example show how to animate object along an arbitrary QPainterPath?. In the example the object is moving while the user is allowed to dynamically manipulate the path while the object is moving.
svn://labs.trolltech.com/svn/graphics/dojo/rof/bezier

Image:bezier.png

[edit]

Blobs

I ported exactly this example to QSA Context2D implementation. This is all C++ implementation. Based on Bjoern Lindberg blobsallad work.
svn://labs.trolltech.com/svn/graphics/dojo/blobs

Image:blobs.png

[edit]

Box 2D

In this example I was playing with new intergration techniques. It's a a very small physics engine done by Erin Catto. It shows how to integrate physics world with Qt to produce very realistic animations.
svn://labs.trolltech.com/svn/graphics/dojo/box2d

Image:box2d.png

[edit]

Exponential Blur

This is an implementation of one of the fastest blurring algorithms by Jani Huhtanen. It allows users to drag mouse around, which shows a nice lens and the image under this lens is blurred.
svn://labs.trolltech.com/svn/graphics/dojo/expblur

Image:expblur.png

[edit]

On Path

This example shows how to layout text on a path. Like in the bezier example, it allows users to dynamically change the path while font is rendered on top of it and allows to dynamically change the text and font.
svn://labs.trolltech.com/svn/graphics/dojo/onpath

Image:onpath.png

[edit]

Path Context

This example shows how to use QPainterPath?'s to render pretty complex paths. The user can drag to light around which produces a drop-shadow under the main clock.
svn://labs.trolltech.com/svn/graphics/dojo/pathcontext

Image:pathcontext.png

[edit]

QTransform

This example shows how to do arbitrary transformations on objects using QTransform. In the corner it display the current QTransform matrix which was used to create the rendering. The users can drag the corners of the rendering to transform it on the fly.
svn://labs.trolltech.com/svn/graphics/dojo/qtransform

Image:qtransform.png

[edit]

QTransform 2

This example shows how to easily transform an object around one of the three (x/y/z) axis. It allows user to pick the axis while the object is animating.
svn://labs.trolltech.com/svn/graphics/dojo/qtransform2

Image:qtransform2.png

[edit]

Reflection

This example shows how to do nice reflections using only Qt code. The example animates (zooms in and out).
svn://labs.trolltech.com/svn/graphics/dojo//reflection

Image:reflection.png

[edit]

Shadows

This example shows how to nicely create shadows for abitrary Qt renderings. The example allows users to switch between few svg's/png's , adjust the radius of the shadows and creates the shadows dynamically.
svn://labs.trolltech.com/svn/graphics/dojo/shadows

Image:shadows.png

[edit]

Stackblur

This is another very fast blurring algorithm. The example shows a little animation of images being progrssibly blurred.
svn://labs.trolltech.com/svn/graphics/dojo/stackblur

Image:stackblur.png

[edit]

Wiggly

Another physics inspired example. It shows an object constructed from springs which users can drag around and see it behave like a cloth. It's based on a similar Cairo example.
svn://labs.trolltech.com/svn/graphics/dojo/wiggly

Image:wiggly.png



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.