Draw Line but under the widget (line z order?)

If it’s in the same widget then on the UI designer you just simply have to reorder the padlock or the line on “Hierarchy” Section.

Before:

After: