Table of Content
Adjust Spacing and Margins between Widgets in Layout
Overview
To adjust margins and spacing between widgets [doc.qt.nokia.com] use the following methods setSpacing() [doc.qt.nokia.com] and setContentsMargins() [doc.qt.nokia.com] that are implemented in class QLayout [doc.qt.nokia.com].
Example
This code snippet shows how to remove spacing and margins between widgets in instance of QVBoxLayout [doc.qt.nokia.com]
- pLayout->setSpacing(0);
- pLayout->setMargin(0);
- pLayout->setContentsMargins(0,0,0,0);
- setLayout(pLayout);

