Draw a Line between two widgets
To literally answer it; this assumes we’re drawing from centre to centre:
Do note that lines render last (on top) so either draw from the edges / corners. Or have a separate background with lower Z order and draw there.