Hi,
In Qt3, there is QPainter::drawLineSegments, what is the replacement in Qt4?
Thanks...
Hi,
In Qt3, there is QPainter::drawLineSegments, what is the replacement in Qt4?
Thanks...
I don't know what QPainter::drawLineSegments does,
but among all the drawing methods of QPainter didn't you find any that fits your needs?
Maybe you can use std::copy to convert your array into a QVector,
then use drawPolygon since a QPolygon is a QVector<QPoint>
Qt Code:
QPointArray yourArray; std::copy(yourArray.begin(), yourArray.end(), polygon.begin()) painter->drawPolygon(polygon);To copy to clipboard, switch view to plain text mode
Or maybe Qt provides container algorithm too.
hope this helped you...
Bookmarks