API reference - Class QLayout

Notation used in Ruby API documentation

Description: Binding of QLayout

Class hierarchy: QLayout » QObject

Public constructors

new QLayoutnew(QWidget ptr parent)Constructor QLayout::QLayout(QWidget *parent)
new QLayoutnewConstructor QLayout::QLayout()

Public methods

boolactivateMethod bool QLayout::activate()
[virtual]voidaddItem(QLayoutItem ptr arg1)Virtual method void QLayout::addItem(QLayoutItem *)
voidaddWidget(QWidget ptr w)Method void QLayout::addWidget(QWidget *w)
voidalignment=(const Qt_QFlags_AlignmentFlag a)Method void QLayout::setAlignment(QFlags<Qt::AlignmentFlag> a)
[const]const QLayoutItem ptrasConstQLayoutItemDelivers the base class interface QLayoutItem of QLayout
[const]const QObject ptrasConstQObjectDelivers the base class interface QObject of QLayout
QLayoutItem ptrasQLayoutItemDelivers the base class interface QLayoutItem of QLayout
QObject ptrasQObjectDelivers the base class interface QObject of QLayout
[const]QMarginscontentsMarginsMethod QMargins QLayout::contentsMargins()
voidcontentsMargins=(const QMargins margins)Method void QLayout::setContentsMargins(const QMargins &margins)
[const]QRectcontentsRectMethod QRect QLayout::contentsRect()
[virtual,const]intcountVirtual method int QLayout::count()
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[event]voiddestroyed(QObject ptr arg1)Signal declaration for QLayout::destroyed(QObject *)
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
voidenabled=(bool arg1)Method void QLayout::setEnabled(bool)
[virtual]boolevent(QEvent ptr arg1)Virtual method bool QLayout::event(QEvent *)
[virtual]booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QLayout::eventFilter(QObject *, QEvent *)
[virtual,const]Qt_QFlags_OrientationexpandingDirectionsVirtual method QFlags<Qt::Orientation> QLayout::expandingDirections()
[virtual,const]QRectgeometryVirtual method QRect QLayout::geometry()
voidgeometry=(const QRect arg1)Method void QLayout::setGeometry(const QRect &)
[const]voidgetContentsMargins(int ptr left,
int ptr top,
int ptr right,
int ptr bottom)
Method void QLayout::getContentsMargins(int *left, int *top, int *right, int *bottom)
[virtual,const]boolhasHeightForWidthVirtual method bool QLayout::hasHeightForWidth()
[virtual,const]intheightForWidth(int arg1)Virtual method int QLayout::heightForWidth(int)
[virtual,const]intindexOf(QWidget ptr arg1)Virtual method int QLayout::indexOf(QWidget *)
[virtual]voidinvalidateVirtual method void QLayout::invalidate()
[virtual,const]boolisEmptyVirtual method bool QLayout::isEmpty()
[const]boolisEmpty?Method bool QLayout::isEmpty()
[const]boolisEnabledMethod bool QLayout::isEnabled()
[const]boolisEnabled?Method bool QLayout::isEnabled()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[virtual,const]QLayoutItem ptritemAt(int index)Virtual method QLayoutItem *QLayout::itemAt(int index)
[virtual]QLayout ptrlayoutVirtual method QLayout *QLayout::layout()
[const]intmarginMethod int QLayout::margin()
voidmargin=(int arg1)Method void QLayout::setMargin(int)
[virtual,const]QSizemaximumSizeVirtual method QSize QLayout::maximumSize()
[const]QWidget ptrmenuBarMethod QWidget *QLayout::menuBar()
voidmenuBar=(QWidget ptr w)Method void QLayout::setMenuBar(QWidget *w)
[virtual,const]intminimumHeightForWidth(int arg1)Virtual method int QLayout::minimumHeightForWidth(int)
[virtual,const]QSizeminimumSizeVirtual method QSize QLayout::minimumSize()
[const]QWidget ptrparentWidgetMethod QWidget *QLayout::parentWidget()
voidremoveItem(QLayoutItem ptr arg1)Method void QLayout::removeItem(QLayoutItem *)
voidremoveWidget(QWidget ptr w)Method void QLayout::removeWidget(QWidget *w)
boolsetAlignment(QWidget ptr w,
const Qt_QFlags_AlignmentFlag alignment)
Method bool QLayout::setAlignment(QWidget *w, QFlags<Qt::AlignmentFlag> alignment)
boolsetAlignment(QLayout ptr l,
const Qt_QFlags_AlignmentFlag alignment)
Method bool QLayout::setAlignment(QLayout *l, QFlags<Qt::AlignmentFlag> alignment)
voidsetAlignment(const Qt_QFlags_AlignmentFlag a)Method void QLayout::setAlignment(QFlags<Qt::AlignmentFlag> a)
voidsetContentsMargins(int left,
int top,
int right,
int bottom)
Method void QLayout::setContentsMargins(int left, int top, int right, int bottom)
voidsetContentsMargins(const QMargins margins)Method void QLayout::setContentsMargins(const QMargins &margins)
voidsetEnabled(bool arg1)Method void QLayout::setEnabled(bool)
[virtual]voidsetGeometry(const QRect arg1)Virtual method void QLayout::setGeometry(const QRect &)
voidsetMargin(int arg1)Method void QLayout::setMargin(int)
voidsetMenuBar(QWidget ptr w)Method void QLayout::setMenuBar(QWidget *w)
voidsetSizeConstraint(const QLayout_SizeConstraint arg1)Method void QLayout::setSizeConstraint(QLayout::SizeConstraint)
voidsetSpacing(int arg1)Method void QLayout::setSpacing(int)
[const]QLayout_SizeConstraintsizeConstraintMethod QLayout::SizeConstraint QLayout::sizeConstraint()
voidsizeConstraint=(const QLayout_SizeConstraint arg1)Method void QLayout::setSizeConstraint(QLayout::SizeConstraint)
[virtual,const]QSizesizeHintVirtual method QSize QLayout::sizeHint()
[virtual]QSpacerItem ptrspacerItemVirtual method QSpacerItem *QLayout::spacerItem()
[const]intspacingMethod int QLayout::spacing()
voidspacing=(int arg1)Method void QLayout::setSpacing(int)
[virtual]QLayoutItem ptrtakeAt(int index)Virtual method QLayoutItem *QLayout::takeAt(int index)
[const]inttotalHeightForWidth(int w)Method int QLayout::totalHeightForWidth(int w)
[const]QSizetotalMaximumSizeMethod QSize QLayout::totalMaximumSize()
[const]QSizetotalMinimumSizeMethod QSize QLayout::totalMinimumSize()
[const]QSizetotalSizeHintMethod QSize QLayout::totalSizeHint()
voidupdateMethod void QLayout::update()
[virtual]QWidget ptrwidgetVirtual method QWidget *QLayout::widget()

Public static methods and constants

QLayout_SizeConstraintSetDefaultConstraintEnum constant QLayout::SetDefaultConstraint
QLayout_SizeConstraintSetFixedSizeEnum constant QLayout::SetFixedSize
QLayout_SizeConstraintSetMaximumSizeEnum constant QLayout::SetMaximumSize
QLayout_SizeConstraintSetMinAndMaxSizeEnum constant QLayout::SetMinAndMaxSize
QLayout_SizeConstraintSetMinimumSizeEnum constant QLayout::SetMinimumSize
QLayout_SizeConstraintSetNoConstraintEnum constant QLayout::SetNoConstraint
QSizeclosestAcceptableSize(const QWidget ptr w,
const QSize s)
Static method QSize QLayout::closestAcceptableSize(const QWidget *w, const QSize &s)
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = 0)
Static method QString QLayout::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QLayout::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QLayout::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QLayout::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidaddChildLayout(QLayout ptr l)Method void QLayout::addChildLayout(QLayout *l)
voidaddChildWidget(QWidget ptr w)Method void QLayout::addChildWidget(QWidget *w)
[const]QRectalignmentRect(const QRect arg1)Method QRect QLayout::alignmentRect(const QRect &)
[virtual]voidchildEvent(QChildEvent ptr e)Virtual method void QLayout::childEvent(QChildEvent *e)
[virtual]voidcustomEvent(QEvent ptr arg1)Virtual method void QLayout::customEvent(QEvent *)
[virtual]voiddisconnectNotify(string signal)Virtual method void QLayout::disconnectNotify(const char *signal)
[const]intreceivers(string signal)Method int QLayout::receivers(const char *signal)
[const]QObject ptrsenderMethod QObject *QLayout::sender()
[virtual]voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QLayout::timerEvent(QTimerEvent *)
voidwidgetEvent(QEvent ptr arg1)Method void QLayout::widgetEvent(QEvent *)

Detailed description

[static] QLayout_SizeConstraint SetDefaultConstraint

Description: Enum constant QLayout::SetDefaultConstraint

[static] QLayout_SizeConstraint SetFixedSize

Description: Enum constant QLayout::SetFixedSize

[static] QLayout_SizeConstraint SetMaximumSize

Description: Enum constant QLayout::SetMaximumSize

[static] QLayout_SizeConstraint SetMinAndMaxSize

Description: Enum constant QLayout::SetMinAndMaxSize

[static] QLayout_SizeConstraint SetMinimumSize

Description: Enum constant QLayout::SetMinimumSize

[static] QLayout_SizeConstraint SetNoConstraint

Description: Enum constant QLayout::SetNoConstraint

bool activate

Description: Method bool QLayout::activate()

void addChildLayout(QLayout ptr l)

Description: Method void QLayout::addChildLayout(QLayout *l)

This method is protected and can only be called from inside a derived class.

void addChildWidget(QWidget ptr w)

Description: Method void QLayout::addChildWidget(QWidget *w)

This method is protected and can only be called from inside a derived class.

[virtual] void addItem(QLayoutItem ptr arg1)

Description: Virtual method void QLayout::addItem(QLayoutItem *)

This method can be reimplemented in a derived class.

void addWidget(QWidget ptr w)

Description: Method void QLayout::addWidget(QWidget *w)

void alignment=(const Qt_QFlags_AlignmentFlag a)

Description: Method void QLayout::setAlignment(QFlags<Qt::AlignmentFlag> a)

[const] QRect alignmentRect(const QRect arg1)

Description: Method QRect QLayout::alignmentRect(const QRect &)

This method is protected and can only be called from inside a derived class.

[const] const QLayoutItem ptr asConstQLayoutItem

Description: Delivers the base class interface QLayoutItem of QLayout

Class QLayout is derived from multiple base classes. This method delivers the QLayoutItem base class aspect.

Use this version if you have a const reference.

[const] const QObject ptr asConstQObject

Description: Delivers the base class interface QObject of QLayout

Class QLayout is derived from multiple base classes. This method delivers the QObject base class aspect.

Use this version if you have a const reference.

QLayoutItem ptr asQLayoutItem

Description: Delivers the base class interface QLayoutItem of QLayout

Class QLayout is derived from multiple base classes. This method delivers the QLayoutItem base class aspect.

QObject ptr asQObject

Description: Delivers the base class interface QObject of QLayout

Class QLayout is derived from multiple base classes. This method delivers the QObject base class aspect.

[virtual] void childEvent(QChildEvent ptr e)

Description: Virtual method void QLayout::childEvent(QChildEvent *e)

This method can be reimplemented in a derived class.

[static] QSize closestAcceptableSize(const QWidget ptr w,const QSize s)

Description: Static method QSize QLayout::closestAcceptableSize(const QWidget *w, const QSize &s)

This method is static and can be called without an instance.

[const] QMargins contentsMargins

Description: Method QMargins QLayout::contentsMargins()

void contentsMargins=(const QMargins margins)

Description: Method void QLayout::setContentsMargins(const QMargins &margins)

[const] QRect contentsRect

Description: Method QRect QLayout::contentsRect()

[virtual,const] int count

Description: Virtual method int QLayout::count()

This method can be reimplemented in a derived class.

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

[virtual] void customEvent(QEvent ptr arg1)

Description: Virtual method void QLayout::customEvent(QEvent *)

This method can be reimplemented in a derived class.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[event] void destroyed(QObject ptr arg1)

Description: Signal declaration for QLayout::destroyed(QObject *)

You can bind a procedure to this signal.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[virtual] void disconnectNotify(string signal)

Description: Virtual method void QLayout::disconnectNotify(const char *signal)

This method can be reimplemented in a derived class.

void enabled=(bool arg1)

Description: Method void QLayout::setEnabled(bool)

[virtual] bool event(QEvent ptr arg1)

Description: Virtual method bool QLayout::event(QEvent *)

This method can be reimplemented in a derived class.

[virtual] bool eventFilter(QObject ptr arg1,QEvent ptr arg2)

Description: Virtual method bool QLayout::eventFilter(QObject *, QEvent *)

This method can be reimplemented in a derived class.

[virtual,const] Qt_QFlags_Orientation expandingDirections

Description: Virtual method QFlags<Qt::Orientation> QLayout::expandingDirections()

This method can be reimplemented in a derived class.

[virtual,const] QRect geometry

Description: Virtual method QRect QLayout::geometry()

This method can be reimplemented in a derived class.

void geometry=(const QRect arg1)

Description: Method void QLayout::setGeometry(const QRect &)

This is a reimplementation of QLayoutItem::setGeometry

[const] void getContentsMargins(int ptr left,int ptr top,int ptr right,int ptr bottom)

Description: Method void QLayout::getContentsMargins(int *left, int *top, int *right, int *bottom)

[virtual,const] bool hasHeightForWidth

Description: Virtual method bool QLayout::hasHeightForWidth()

This method can be reimplemented in a derived class.

[virtual,const] int heightForWidth(int arg1)

Description: Virtual method int QLayout::heightForWidth(int)

This method can be reimplemented in a derived class.

[virtual,const] int indexOf(QWidget ptr arg1)

Description: Virtual method int QLayout::indexOf(QWidget *)

This method can be reimplemented in a derived class.

[virtual] void invalidate

Description: Virtual method void QLayout::invalidate()

This method can be reimplemented in a derived class.

[virtual,const] bool isEmpty

Description: Virtual method bool QLayout::isEmpty()

This method can be reimplemented in a derived class.

[const] bool isEmpty?

Description: Method bool QLayout::isEmpty()

This is a reimplementation of QLayoutItem::isEmpty

[const] bool isEnabled

Description: Method bool QLayout::isEnabled()

[const] bool isEnabled?

Description: Method bool QLayout::isEnabled()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[virtual,const] QLayoutItem ptr itemAt(int index)

Description: Virtual method QLayoutItem *QLayout::itemAt(int index)

This method can be reimplemented in a derived class.

[virtual] QLayout ptr layout

Description: Virtual method QLayout *QLayout::layout()

This method can be reimplemented in a derived class.

[const] int margin

Description: Method int QLayout::margin()

void margin=(int arg1)

Description: Method void QLayout::setMargin(int)

[virtual,const] QSize maximumSize

Description: Virtual method QSize QLayout::maximumSize()

This method can be reimplemented in a derived class.

[const] QWidget ptr menuBar

Description: Method QWidget *QLayout::menuBar()

void menuBar=(QWidget ptr w)

Description: Method void QLayout::setMenuBar(QWidget *w)

[virtual,const] int minimumHeightForWidth(int arg1)

Description: Virtual method int QLayout::minimumHeightForWidth(int)

This method can be reimplemented in a derived class.

[virtual,const] QSize minimumSize

Description: Virtual method QSize QLayout::minimumSize()

This method can be reimplemented in a derived class.

[static] new QLayout new(QWidget ptr parent)

Description: Constructor QLayout::QLayout(QWidget *parent)

This method creates an object of class QLayout.

[static] new QLayout new

Description: Constructor QLayout::QLayout()

This method creates an object of class QLayout.

[const] QWidget ptr parentWidget

Description: Method QWidget *QLayout::parentWidget()

[const] int receivers(string signal)

Description: Method int QLayout::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

void removeItem(QLayoutItem ptr arg1)

Description: Method void QLayout::removeItem(QLayoutItem *)

void removeWidget(QWidget ptr w)

Description: Method void QLayout::removeWidget(QWidget *w)

[const] QObject ptr sender

Description: Method QObject *QLayout::sender()

This method is protected and can only be called from inside a derived class.

bool setAlignment(QWidget ptr w,const Qt_QFlags_AlignmentFlag alignment)

Description: Method bool QLayout::setAlignment(QWidget *w, QFlags<Qt::AlignmentFlag> alignment)

bool setAlignment(QLayout ptr l,const Qt_QFlags_AlignmentFlag alignment)

Description: Method bool QLayout::setAlignment(QLayout *l, QFlags<Qt::AlignmentFlag> alignment)

void setAlignment(const Qt_QFlags_AlignmentFlag a)

Description: Method void QLayout::setAlignment(QFlags<Qt::AlignmentFlag> a)

void setContentsMargins(int left,int top,int right,int bottom)

Description: Method void QLayout::setContentsMargins(int left, int top, int right, int bottom)

void setContentsMargins(const QMargins margins)

Description: Method void QLayout::setContentsMargins(const QMargins &margins)

void setEnabled(bool arg1)

Description: Method void QLayout::setEnabled(bool)

[virtual] void setGeometry(const QRect arg1)

Description: Virtual method void QLayout::setGeometry(const QRect &)

This method can be reimplemented in a derived class.

void setMargin(int arg1)

Description: Method void QLayout::setMargin(int)

void setMenuBar(QWidget ptr w)

Description: Method void QLayout::setMenuBar(QWidget *w)

void setSizeConstraint(const QLayout_SizeConstraint arg1)

Description: Method void QLayout::setSizeConstraint(QLayout::SizeConstraint)

void setSpacing(int arg1)

Description: Method void QLayout::setSpacing(int)

[const] QLayout_SizeConstraint sizeConstraint

Description: Method QLayout::SizeConstraint QLayout::sizeConstraint()

void sizeConstraint=(const QLayout_SizeConstraint arg1)

Description: Method void QLayout::setSizeConstraint(QLayout::SizeConstraint)

[virtual,const] QSize sizeHint

Description: Virtual method QSize QLayout::sizeHint()

This method can be reimplemented in a derived class.

[virtual] QSpacerItem ptr spacerItem

Description: Virtual method QSpacerItem *QLayout::spacerItem()

This method can be reimplemented in a derived class.

[const] int spacing

Description: Method int QLayout::spacing()

void spacing=(int arg1)

Description: Method void QLayout::setSpacing(int)

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

[virtual] QLayoutItem ptr takeAt(int index)

Description: Virtual method QLayoutItem *QLayout::takeAt(int index)

This method can be reimplemented in a derived class.

[virtual] void timerEvent(QTimerEvent ptr arg1)

Description: Virtual method void QLayout::timerEvent(QTimerEvent *)

This method can be reimplemented in a derived class.

[const] int totalHeightForWidth(int w)

Description: Method int QLayout::totalHeightForWidth(int w)

[const] QSize totalMaximumSize

Description: Method QSize QLayout::totalMaximumSize()

[const] QSize totalMinimumSize

Description: Method QSize QLayout::totalMinimumSize()

[const] QSize totalSizeHint

Description: Method QSize QLayout::totalSizeHint()

[static] string tr(string s,string c = 0)

Description: Static method QString QLayout::tr(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string tr(string s,string c,int n)

Description: Static method QString QLayout::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c = 0)

Description: Static method QString QLayout::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

[static] string trUtf8(string s,string c,int n)

Description: Static method QString QLayout::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

void update

Description: Method void QLayout::update()

[virtual] QWidget ptr widget

Description: Virtual method QWidget *QLayout::widget()

This method can be reimplemented in a derived class.

void widgetEvent(QEvent ptr arg1)

Description: Method void QLayout::widgetEvent(QEvent *)

This method is protected and can only be called from inside a derived class.