i have implemented the pen feature but i am finding it diffucult for drawing shapes like rectangle and lines on mouse movements.. attached here is my code... also i have very little help available , any help will be appreciated.
thanks Jason H-3 wrote: > > 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 <[email protected]> > To: [email protected] > 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 [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > > > > _______________________________________________ > PyQt mailing list [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > -- View this message in context: http://www.nabble.com/image-tool-like-paint-tp25024632p25184293.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
