![]() |
Home · Examples |
Code:
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() method.
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 © 2008 Trolltech | Trademarks | Qt Jambi 4.4.2_01 |