If those lines only connect other objects, IMO you should draw them by hand without creating Q3CanvasLine.