Adjust Spacing and Margins between Widgets in Layout

From Qt Wiki
Revision as of 13:57, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]

Categories: