Re: QPointArray
nornagon <[email protected]> Tue, 1 Feb 2005 00:47:07 +1100
| Newsgroups | gmane.comp.kde.devel.perl |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 31 Jan 2005 13:03:45 +0100, Richard Dale <[email protected]> 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 > [email protected] > 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