Hi
What are u calling setPen on?

Paths do not store color and such information
so Im not sure its possible to do with only 1 polygon.

Maybe create a subclass of QGraphicsItem and paint it directly with
qpainter::drawLine which supports colors very easy.

http://www.bogotobogo.com/Qt/Qt5_QGraphicsView_QGraphicsScene_QGraphicsItems.php