Solved How to create long line?
-
Hi,
I would like to create GUI with two parts. They are separate by one long line. Something like this:
The first part here is "Custom Setup", the second part is between the lines. Here we have for example "Browse" button and location.
In the third part there are "Back", "Next", "Cancel", "Disk Usage" buttons.When I try something like:
HLine = new QFrame; HLine->setFrameShape(QFrame::HLine);
and add this line to qGridLayout I get the line, but which is shorter:
The black rectangles are my Desktop background, the vertical lines are QGroupBox border and the horizontal line is what I talking about. I would like that will be longer like in virtual box image example.
-
It's probably due to your layout margin.
CallsetContentsMargins(0,0,0,0)
to your layout. -
-