Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos
Referencia de la Clase QHBox

The QHBox widget provides horizontal geometry management for its child widgets. Más...

#include <qhbox.h>

Diagrama de herencias de QHBox
QFrame QFrame QWidget QWidget QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QVBox QVBox PreviewFrame SourceEditor PreviewFrame SourceEditor

Lista de todos los miembros.

Métodos públicos

 QHBox (QWidget *parent=0, const char *name=0, WFlags f=0)
void setSpacing (int)
bool setStretchFactor (QWidget *, int stretch)
QSize sizeHint () const
 QHBox (QWidget *parent=0, const char *name=0, WFlags f=0)
void setSpacing (int)
bool setStretchFactor (QWidget *, int stretch)
QSize sizeHint () const

Métodos protegidos

 QHBox (bool horizontal, QWidget *parent, const char *name, WFlags f=0)
void frameChanged ()
 QHBox (bool horizontal, QWidget *parent, const char *name, WFlags f=0)
void frameChanged ()

Descripción detallada

The QHBox widget provides horizontal geometry management for its child widgets.

All the horizontal box's child widgets will be placed alongside each other and sized according to their sizeHint()s.

Use setMargin() to add space around the edges, and use setSpacing() to add space between the widgets. Use setStretchFactor() if you want the widgets to be different sizes in proportion to one another. (See Layouts for more information on stretch factors.)

qhbox-m.png QHBox

Ver también:
QHBoxLayout QVBox QGrid

Documentación del constructor y destructor

QHBox::QHBox ( QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
)

Constructs an hbox widget with parent parent, called name. The parent, name and widget flags, f, are passed to the QFrame constructor.

QHBox::QHBox ( bool  horizontal,
QWidget parent,
const char *  name,
WFlags  f = 0 
) [protected]

Constructs a horizontal hbox if horizontal is TRUE, otherwise constructs a vertical hbox (also known as a vbox).

This constructor is provided for the QVBox class. You should never need to use it directly.

The parent, name and widget flags, f, are passed to the QFrame constructor.

QHBox::QHBox ( QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
)
QHBox::QHBox ( bool  horizontal,
QWidget parent,
const char *  name,
WFlags  f = 0 
) [protected]

Documentación de las funciones miembro

void QHBox::frameChanged ( ) [protected, virtual]

Reimplementado de QFrame.

void QHBox::frameChanged ( ) [protected, virtual]

Virtual function that is called when the frame style, line width or mid-line width changes.

This function can be reimplemented by subclasses that need to know when the frame attributes change.

The default implementation calls update().

Reimplementado de QFrame.

void QHBox::setSpacing ( int  space)

Sets the spacing between the child widgets to space.

void QHBox::setSpacing ( int  )
bool QHBox::setStretchFactor ( QWidget w,
int  stretch 
)

Sets the stretch factor of widget w to stretch. Returns TRUE if w is found. Otherwise returns FALSE.

Ver también:
QBoxLayout::setStretchFactor() Layouts
bool QHBox::setStretchFactor ( QWidget ,
int  stretch 
)
QSize QHBox::sizeHint ( ) const [virtual]

Reimplementado de QFrame.

QSize QHBox::sizeHint ( ) const [virtual]

Reimplementado de QFrame.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'