[PyQt] using qpainter and drawing lines on widget

Phil Thompson phil at riverbankcomputing.com
Wed Aug 19 08:25:28 BST 2009


On Wed, 19 Aug 2009 00:22:02 -0700 (PDT), vidyadhar
<ankurtilve2003 at yahoo.com> wrote:
> can anyone pls give me an example or any idea on how to dray lines on a
> widget on the movment of mouse and click.
> i think i have to use a Qpainter class but dont know how to go abt it in
> pyqt.
> pls help
> thanks

As David said (yesterday?), look at the scribble.py example included with
PyQt.

Phil


More information about the PyQt mailing list