you can use QGraphicsView, QGraphicsScene, QGraphicsPath, and QGraphicsLineItem.