Obsolete Members for QLayout

The following members of class QLayout are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Properties

Property Documentation

margin : int

This property holds the width of the outside border of the layout.

Use setContentsMargins() and getContentsMargins() instead.

Access functions:

int margin() const
void setMargin(int margin)

See also contentsRect() and spacing.

Member Function Documentation

int QLayout::margin() const

Note: Getter function for property margin.

See also setMargin().

void QLayout::setMargin(int margin)

Note: Setter function for property margin.

See also margin().

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.