Adjust Spacing and Margins between Widgets in Layout
Jump to navigation
Jump to search
Adjust Spacing and Margins between Widgets in Layout
Overview
To adjust margins and spacing between widgets [qt.io] use the following methods setSpacing() [qt.io] and setContentsMargins() [qt.io] that are implemented in class QLayout [qt.io].
Example
This code snippet shows how to remove spacing and margins between widgets in instance of QVBoxLayout [qt.io]