Building line in PyQt4

Post here if you need help with creating a Graphical User Interface in Python.

Building line in PyQt4

Postby volcano63 » Wed May 01, 2013 1:31 pm

Hi folks,
I am porting some functionality from PIL to PyQt4. My problem - PIL allows creating single line object from a collection of points - (x, y). I did not manage to find similar functionality in PyQt4.
Is there some API in PyQt4 that allows to draw a line by collection of points?

Thanks
volcano63
 
Posts: 5
Joined: Sat Apr 20, 2013 11:40 pm

Re: Building line in PyQt4

Postby volcano63 » Thu May 02, 2013 6:27 am

Well, that was stupid of me :oops: For those who will need it - QPainterPath allows to build line gradually (not just line, but my purpose is the line) that may be later passed on to QGraphicsPathItem constructor.

Cheers!
volcano63
 
Posts: 5
Joined: Sat Apr 20, 2013 11:40 pm


Return to GUI

Who is online

Users browsing this forum: No registered users and 1 guest

cron