Formatting Object in Form Layout
-
Is it me or does it look like your widget is somehow aligned on the bottom of the grid rather than the center ?
-
Are you referring to the IP Assignment Source widget (the one you can't see)? According to the Property Editor, it's centered.
The amount of space suggests that the grid "thinks" there's another line to go in between "Device Name" and "IP Assignment Source." I don't know whether that's possible, though...
-
I wonder if it's because you have the label that is currently wrapping. For the sake of testing, can you change the text to one word to see if it changes anything ?
-
Since it's a designer created widget, would it be possible to post the source of that widget so we can take a look at it ? I'm running out of ideas.
-
Sorry but I have a 404 error for that link.
-
Worked !
But it's requiring IpSource which is rightfully missing
-
Making it IpSource a simple QWidget with the two radio buttons in a vertical layout from which your put all margins to 0 seems to do the trick.
-
@mzimmers said in Formatting Object in Form Layout:
I'm not quite sure what this says about the QFrame and QGroupBox classes, but I guess the answer is not to use either inside a grid if you care about your spacing.
It may be that they add spacing for a title label (at least the group box should) or there's some margin set which isn't apparent from the designer. In any case @SGaist's advice is valid - use
QWidget
s as placeholders in 95% of cases.