PDA

View Full Version : Drawing using QT



Kapil
17th March 2006, 04:01
Hi,

I want to draw object in QT but am not able to do so. I have got the line but what about the other shapes like triangle, rectangle or square and circle.
How do i draw these shapes using QT ?
I would be needing them in drawing a chip design.

Thanking you,

regards,
Kapil

munna
17th March 2006, 04:23
Hi,

In the paintEvent of your widget declare QPainter and then use it for drawing any kind of object you like.

Also look into painting examples that come with Qt.