[Qt-interest] New for QPainter and QGraphicItemView

Yuvaraj R yuvaraj at ongobiz.com
Fri Jul 3 06:45:00 CEST 2009


Hi All

Since 2 months  i am using QT...

Upto now i don't use the QPainter and QGraphicView

Now i am learning the both things  how use it..

I want to drawellipse  in my graphicitemview Widget


Qpainter *painter = new Qpainter (ui->graphicView);

 painter->setBrush(Qt::cyan);

painter->drawEllipse(-10, -20, 20, 40);





if i  build this code , nothing i am getting in graphicview widget..







what mistake is there



please suggest me





Thanks



Yuvaraj R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090703/b29be97e/attachment.html 


More information about the Qt-interest-old mailing list