Compatibility Members for QVBoxLayout

The following members of class QVBoxLayoutare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

QVBoxLayout(QWidget * parent, int margin, int spacing = -1, const char * name = 0)
QVBoxLayout(QLayout * parentLayout, int spacing = -1, const char * name = 0)
QVBoxLayout(int spacing, const char * name = 0)
  • 1 public function inherited from QBoxLayout
  • 11 public functions inherited from QLayout
  • 8 public functions inherited from QObject

Member Function Documentation

QVBoxLayout::QVBoxLayout(QWidget * parent, int margin, int spacing = -1, const char * name = 0)

Constructs a new top-level vertical box called name, with parent parent.

The margin is the number of pixels between the edge of the widget and its managed children. The spacing is the default number of pixels between neighboring children. If spacing is -1 the value of margin is used for spacing.

QVBoxLayout::QVBoxLayout(QLayout * parentLayout, int spacing = -1, const char * name = 0)

Constructs a new vertical box called name name and adds it to parentLayout.

The spacing is the default number of pixels between neighboring children. If spacing is -1, this QVBoxLayout will inherit its parent's spacing().

QVBoxLayout::QVBoxLayout(int spacing, const char * name = 0)

Constructs a new vertical box called name name. You must add it to another layout.

The spacing is the default number of pixels between neighboring children. If spacing is -1, this QVBoxLayout will inherit its parent's spacing().

© 2016 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.