[Qt-interest] how to draw a circle with color filled in?
Ankit Agarwal
ankit17.ag at gmail.com
Wed Dec 17 05:18:38 CET 2008
Hi James,
I think that you need to use:
QBrush brush(Qt::globalColor,Qt::SolidPattern);
setBrush(QBrush);
On Wed, Dec 17, 2008 at 7:51 AM, James Yan <jyan972 at gmail.com> wrote:
> hi all,
>
> i found drawEllipse() can draw i circle for me when making rx =ry, but the
> circle is just a "contour", no color filled in, how to fill some color to
> the circle? i get no help from QPainter class webpage, i think it should be
> done in few code line. :-)
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Regards,
Ankit Agarwal
SW Engineer
Vegayan Systems
email : ankit_agarwal at vegayan.com
Blog : http://ankit17.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081217/d2895c4d/attachment.html
More information about the Qt-interest-old
mailing list