![]() |
Home · Examples |
This demo shows how to use advanced vector techniques to draw text using a QPainterPath.
To get a fairly complex path we allow the user to type in text and convert the text to paths. This is done using the QPainterPath::addText() function.
The lens is drawn using a single call to QPainter::drawEllipse(), using a QRadialGradient to fill it with a specialized color table, giving the effect of the sun's reflection and a drop shadow. The lens is cached as a pixmap for better performance.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Jambi 4.5.2_01 |