In Qt Designer, How to change the margin and spacing for the layout applied inside a QStacked widget? The Layout Spacing and margin options comes for all the other containers in the properties window except the Stacked Widget. And also by default irrespective the container used each layout applied in the Main Window is given a spacing of 5 and a margin of 9 how to change this?