Reputation: 81
I'm having trouble doing something really simple with Qt Designer (python).
All I want to do is to have a horizontal line as a seperator between the main window and the status bar. That's it. It needs to extend fully across the screen and resize along with the window.
Here is what happens:
The horizontal line is placed where I want it - as a seperator between the main window and status bar
But when I Preview it, the line position is no longer where I put it.
I'll add a vertical spacer because I need to anyway to make the line expandable and resizable with the window.
But as soon as I apply a vertical layout, the position of the line has changed again. In addition, it doesn't extend to the edges of the screen.
This is a preview of the vertical layout. It's far from what I need it to be.
Text version:
I'll put the horizontal line exactly where I want it.
As soon as I preview the window, the line is no longer where I put it. Now it's higher than the chosen placement.
I'll add a vertical spacer because I need to anyway to make the line expandable and resizable with the window.
But as soon as I apply a vertical layout, the position of the line has changed again. In addition, it doesn't extend to the edges of the screen.
Previewing the vertical layout shows that the incorrect way it looked in design mode is how it also looks in preview.
What am I doing wrong? How do I get something as simple as a line to behave the way that I want?
Upvotes: 1
Views: 3058
Reputation: 325
QT - Place Buttons on Bottom Right
This Question is asking something similar, but with buttons.
That should do the job.
Upvotes: 0