I think QLine is used to draw fixed lines on the main window. But I'd like to be able to draw vertical and horizontal lines on the main layout in order to use them as separators. I don't want them to be fixed to any position but I'd like them to change their position as the main layout is shrinked and expanded by the user - kind of like the addStretch() works.
More specifiacally: I have two widgets on the screen and I'd like to have a vertical line between then to act as a separator. When user expands the window, I'd like the line to stay between the two widgets and also equal distance from each. I need this to create some order and make my layout look less busy.