QHBoxLayout Class Reference

QHBoxLayout Class Reference

#include <qboxlayout.h>

Class Description

+ Examples:

Definition at line 129 of file qboxlayout.h.

+ Inheritance diagram for QHBoxLayout:

Public Member Functions

 QHBoxLayout ()
 
 QHBoxLayout (QWidget *parent)
 
 ~QHBoxLayout ()
 
- Public Member Functions inherited from QBoxLayout
 QBoxLayout (Direction, QWidget *parent=0)
 
 ~QBoxLayout ()
 
Direction direction () const
 
void setDirection (Direction)
 
void addSpacing (int size)
 
void addStretch (int stretch=0)
 
void addSpacerItem (QSpacerItem *spacerItem)
 
void addWidget (QWidget *, int stretch=0, Qt::Alignment alignment=0)
 
void addLayout (QLayout *layout, int stretch=0)
 
void addStrut (int)
 
void addItem (QLayoutItem *)
 
void insertSpacing (int index, int size)
 
void insertStretch (int index, int stretch=0)
 
void insertSpacerItem (int index, QSpacerItem *spacerItem)
 
void insertWidget (int index, QWidget *widget, int stretch=0, Qt::Alignment alignment=0)
 
void insertLayout (int index, QLayout *layout, int stretch=0)
 
int spacing () const
 
void setSpacing (int spacing)
 
bool setStretchFactor (QWidget *w, int stretch)
 
bool setStretchFactor (QLayout *l, int stretch)
 
void setStretch (int index, int stretch)
 
int stretch (int index) const
 
QSize sizeHint () const
 
QSize minimumSize () const
 
QSize maximumSize () const
 
bool hasHeightForWidth () const
 
int heightForWidth (int) const
 
int minimumHeightForWidth (int) const
 
Qt::Orientations expandingDirections () const
 
void invalidate ()
 
QLayoutItemitemAt (int) const
 
QLayoutItemtakeAt (int)
 
int count () const
 
void setGeometry (const QRect &)
 
- Public Member Functions inherited from QLayout
 QLayout (QWidget *parent)
 
 QLayout ()
 
 ~QLayout ()
 
int margin () const
 
int spacing () const
 
void setMargin (int)
 
void setSpacing (int)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContentsMargins (const QMargins &margins)
 
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
 
QMargins contentsMargins () const
 
QRect contentsRect () const
 
bool setAlignment (QWidget *w, Qt::Alignment alignment)
 
bool setAlignment (QLayout *l, Qt::Alignment alignment)
 
void setSizeConstraint (SizeConstraint)
 
SizeConstraint sizeConstraint () const
 
void setMenuBar (QWidget *w)
 
QWidgetmenuBar () const
 
QWidgetparentWidget () const
 
void invalidate ()
 
QRect geometry () const
 
bool activate ()
 
void update ()
 
void addWidget (QWidget *w)
 
void removeWidget (QWidget *w)
 
void removeItem (QLayoutItem *)
 
Qt::Orientations expandingDirections () const
 
QSize minimumSize () const
 
QSize maximumSize () const
 
virtual int indexOf (QWidget *) const
 
bool isEmpty () const
 
int totalHeightForWidth (int w) const
 
QSize totalMinimumSize () const
 
QSize totalMaximumSize () const
 
QSize totalSizeHint () const
 
QLayoutlayout ()
 
void setEnabled (bool)
 
bool isEnabled () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 
- Public Member Functions inherited from QLayoutItem
 QLayoutItem (Qt::Alignment alignment=0)
 
virtual ~QLayoutItem ()
 
virtual QWidgetwidget ()
 
virtual QSpacerItemspacerItem ()
 
Qt::Alignment alignment () const
 
void setAlignment (Qt::Alignment a)
 
QSizePolicy::ControlTypes controlTypes () const
 

Additional Inherited Members

- Public Types inherited from QBoxLayout
enum  Direction {
  LeftToRight, RightToLeft, TopToBottom, BottomToTop,
  Down = TopToBottom, Up = BottomToTop
}
 
- Public Types inherited from QLayout
enum  SizeConstraint {
  SetDefaultConstraint, SetNoConstraint, SetMinimumSize, SetFixedSize,
  SetMaximumSize, SetMinAndMaxSize
}
 
- Public Slots inherited from QObject
void deleteLater ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 
- Static Public Member Functions inherited from QLayout
static QSize closestAcceptableSize (const QWidget *w, const QSize &s)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Member Functions inherited from QBoxLayout
void insertItem (int index, QLayoutItem *)
 
- Protected Member Functions inherited from QLayout
void widgetEvent (QEvent *)
 
void childEvent (QChildEvent *e)
 
void addChildLayout (QLayout *l)
 
void addChildWidget (QWidget *w)
 
bool adoptLayout (QLayout *layout)
 
QRect alignmentRect (const QRect &) const
 
 QLayout (QLayoutPrivate &d, QLayout *, QWidget *)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Protected Attributes inherited from QLayoutItem
Qt::Alignment align
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QLayout
int margin
 
int spacing
 
SizeConstraint sizeConstraint
 
- Properties inherited from QObject
QString objectName
 

Constructor & Destructor Documentation

QHBoxLayout ( QWidget parent)
explicit

The documentation for this class was generated from the following file: