[PyQt] image tool like paint

Jason H scorp1us at yahoo.com
Tue Aug 18 15:08:06 BST 2009


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 <ankurtilve2003 at yahoo.com>
To: pyqt at 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 at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt



      


More information about the PyQt mailing list