Sylvain <sylvainmoulis <at> hotmail.com> writes: > > Hello,I'm using a custom QPaintEngine, but when I use the drawPolygon method of a QPainter (wich as my custom paint engine as paint engine), the drawPolygon method of my custom QPaintEngine receive only the first QPoint of the polygon, despite the pointsCount variable showing the expected number of points.Here is an exemple: http://codepad.org/9LRo6UVZ, where a custom QPaintEngine receive only one QPoint instead of 5 (as defined in the customized QWidget.paintEvent), while a default QPaintEngine doesn't seem to have this problem (all the points of the polygon are drawn). > p, li { white-space: pre-wrap; Am I missing something in the way of using a custom QPaintEngine or receiving a list of QPoint, or is it a bug in the C++ array (from the QPainter) to python list (in the custom QPaintEngine) wrapping ?Regards,Sylvain > > > _______________________________________________ > PySide mailing list > PySide <at> qt-project.org > http://lists.qt-project.org/mailman/listinfo/pyside >
Not sure if this is entirely relevant, but I've seen someone with an issue that sounds reasonably similar on stack overflow (they expect a pointer to an array of QPointF's, but only get back a single QPointF). Post is here: http://stackoverflow.com/q/20119777/1994235 Just thought I'd bring that up in case there is a common fault causing both problems. Cheers, _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
