Dr Deo
Dr Deo

Reputation: 4848

QT how to get rid of spaces between widgets and their parents

I love designing my userinterfaces in qtdesigner because its just so damn simple. However, there is always space in between widgets and their parents which i want to eliminate.

Example of problem

Voila, I want to get rid of the green sections because in my view they make the program look ugly. ugly image Link to my ui file. Download ui file from my dropbox or get it from pastebin

Upvotes: 0

Views: 321

Answers (1)

sam-w
sam-w

Reputation: 7687

In Qt Designer, select your top level widget (in this case Dialog), then look at the Property Editor on the right-hand sidebar. Scroll all the way down and you'll see a section referring to the layout assigned to that widget. You want to change the layoutLeftMargin, layoutRightMargin, etc. properties.

Upvotes: 2

Related Questions