It is relatively easy. You need a QWidget-detived widget that will collect 
mouse up/down events and store pixel data. Color is set by setting a pen via a 
toolbar. After that you can incorporate zoom/scaling and additional tools.

Some of the questions though are do you want it to be raster (as above) or 
vector, like Inkscape? Vector is a little more tricky, but the same basic 
concept.

Good Luck!




----- Original Message ----
From: vidyadhar <ankurtilve2...@yahoo.com>
To: pyqt@riverbankcomputing.com
Sent: Tuesday, August 18, 2009 9:16:05 AM
Subject: [PyQt] image tool like paint


i have no idea as how to go about for devloping an application similar to
paint the one in windows. the one which has a pen tool, eraser,shapes to
draw. I would like to use the tool to highlight an area on picture.
so anyone has any idea how to use Qpainter class .
please help me with an example if possible. or how to go abt
-- 
View this message in context: 
http://www.nabble.com/image-tool-like-paint-tp25024632p25024632.html
Sent from the PyQt mailing list archive at Nabble.com.

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt



      
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to