2014-02-26 42 views

回答

3

這應該做你想要什麼:

QVector<QPoint> intersection(const QVector<QPoint> &lhs, 
          const QVector<QPoint> &rhs) { 

    return QPolygon(lhs).intersected(rhs); 
} 

QPolygon繼承QVector<QPoint>,並且還具有接受QVector<QPoint>構造。

+0

謝謝!我會試一試。 –