I would like to draw squares and withing them, small circles that can be connected to other squares in other squares by a polyline or so.

I would like to know how to do that in QT.

Attached an image for more illustration.image
test.png