Maybe you can use std::copy to convert your array into a QVector,
then use drawPolygon since a QPolygon is a QVector<QPoint>
QPointArray yourArray;
std::copy(yourArray.begin(), yourArray.end(), polygon.begin())
painter->drawPolygon(polygon);
QPointArray yourArray;
QPolygon polygon(yourArray.size());
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