PDA

View Full Version : fill this shape gradually



Qt Coder
23rd March 2009, 10:34
Hello all,

I m using Qt 4.4.3 .

I m developing an application in which I have to fill an the shape (see in attached image ) gradually as the application proceeds .


I dont know how to draw this shapeis there any in-built functions (like drawRect,drawEllipse etc) for such shape.

And do I need to use any filling algorithm???? Or can I achieve this using QBrush...

Please help

vasanth
23rd March 2009, 11:11
u can go through the manual for drawing the shapes, using the QPainter,
http://doc.trolltech.com/4.3/q3painter.html

and U can fill the shape with QBrush
http://doc.trolltech.com/4.3/qbrush.html

ComaWhite
24th March 2009, 00:01
Don't use q3painter. Thats left over from Qt3. Use the Qt4 QPainter or QGraphicsView.