[Qt-interest] Drawing rectangular
Alessandro Portale
Alessandro.Portale at trolltech.com
Mon Sep 21 10:33:33 CEST 2009
I think that Samuels question was:
Where did you put those lines? Into a function called paintEvent()?
See:
http://doc.qt.nokia.com/latest/qwidget.html#paintEvent
Are if Yes, make sure that you did override the function correctly (same
parameters).
Alesasndro
Yuvaraj R schrieb:
> No
>
> I used simple lines
>
> QPainter paint(this)
> paint.DrawRect(100,100,100,100);
>
> what's with this code?
>
> Thanks
>
> Yuvaraj r
More information about the Qt-interest-old
mailing list