PDA

View Full Version : Hand Drawing in Qt



Nasrudin
30th May 2010, 01:12
Hi,

How can I hand draw in qt (brush tool like gimp, paint, photoshop applications)?
I want to draw some free form curves and then being able of selecting them with mouse.
How can i do this?


any suggestions?

Thx in advance!

Lykurg
30th May 2010, 08:19
Use QGraphicsScene with item. Or if it is only pixel orientated, you can use a simple QWidget and use the mouse event handlers for drawing. In the documentation you find an example for the last one.