[PyKDE] Problem with QPointArray

Phil Thompson phil at river-bank.demon.co.uk
Fri May 10 18:36:01 BST 2002


Janos Blazi wrote:
> 
> Let us assume that <tmp> is a sequence of QPoint objects and p is a QPainter
> instance.
> 
> If I make the call
>  p.drawLineSegments(QPointArray(tmp))
> as documented (and sensible), I get an error message.

There is no QPointArray ctor that takes a list of QPoint objects.

There is a QPointArray ctor that takes a list of integers.

> If I build the QPointArray manually with setPoint, everything works nice. Is
> this a bug?

Phil




More information about the PyQt mailing list