[Qt-interest] Drawing rectangular

Yuvaraj R yuvaraj at ongobiz.com
Mon Sep 21 07:16:56 CEST 2009


Even I could not able to  get this one also


tatic const QPointF points[4] = {
     QPointF(10.0, 80.0),
     QPointF(20.0, 10.0),
     QPointF(80.0, 30.0),
     QPointF(90.0, 70.0)
 };

 QPainter painter(this);
 painter.drawPolygon(points, 4);


Please help me


Thanks

Yuvaraj R





On Mon, Sep 21, 2009 at 10:17 AM, Yuvaraj R <yuvaraj at ongobiz.com> wrote:

> Hi All
>
>  I am trying to draw rectangular in Main window, But i don't get my
> output..
>
> My piece of code is:
>
> QPainter *painter=new QPainter(this);
>
> painter->setPen(Qt::red);
>
> painter->drawRect(100,100,100,100);
>
>
> any mistake is there in above code ?
>
>
>
> Thanks
>
>
> Yuvaraj R
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090921/46db2025/attachment.html 


More information about the Qt-interest-old mailing list