[Kde-perl] QPointArray

nornagon nornagon at gmail.com
Mon Jan 31 14:47:07 CET 2005


On Mon, 31 Jan 2005 13:03:45 +0100, Richard Dale
<Richard_Dale at tipitina.demon.co.uk> wrote:
> On Monday 31 January 2005 12:08, nornagon wrote:
> > Hiya.
> >
> > I'm trying to use a Qt::CanvasPolygon in my program, and it seems to
> > use a Qt::PointArray for its points... only Qt::PointArray doesn't
> > seem to have any of the members it should have from inheriting
> > QMemArray<QPoint>.
> >
> > I'm clueless.
> Tricky - the problem is that the Smoke library code generation currently
> misses out template superclasses like QMemArray here. So either the missing
> QMemArray methods could be special cased and added to PerlQt, or the code
> generation would need to be fixed to generate a binding for the classes
> 'QMemArrayPoint' and 'QMemArraychar' for concrete instances of
> QMemArray<QPoint> and QMemArray<char>.
> 
> I've had a look at the QPointArray docs though, and it looks to me as though
> you can work round the missing methods. There is a QPointArray.setPoint(uint
> index, const QPoint& point) method implemented, so it should still be
> possible to set up an array of points. I assume setPoint() resizes the array
> - I haven't tried it.
> 
> -- Richard
> _______________________________________________
> Kde-perl mailing list
> Kde-perl at kde.org
> https://mail.kde.org/mailman/listinfo/kde-perl
> 

I tried using QPointArray::setPoint(uint, int, int)... that one
doesn't resize. I'll give the other version a go tomorrow and report
back. ^_^

-- 
- nornagon
http://www.nornrock.com


More information about the Kde-perl mailing list