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

The QGrid widget provides simple geometry management of its children. Más...

#include <qgrid.h>

Diagrama de herencias de QGrid
QFrame QFrame QWidget QWidget QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Tipos públicos

typedef Orientation Direction
typedef Orientation Direction

Métodos públicos

 QGrid (int n, QWidget *parent=0, const char *name=0, WFlags f=0)
 QGrid (int n, Orientation orient, QWidget *parent=0, const char *name=0, WFlags f=0)
void setSpacing (int)
QSize sizeHint () const
 QGrid (int n, QWidget *parent=0, const char *name=0, WFlags f=0)
 QGrid (int n, Orientation orient, QWidget *parent=0, const char *name=0, WFlags f=0)
void setSpacing (int)
QSize sizeHint () const

Métodos protegidos

void frameChanged ()
void frameChanged ()

Descripción detallada

The QGrid widget provides simple geometry management of its children.

The grid places its widgets either in columns or in rows depending on its orientation.

The number of rows or columns is defined in the constructor. All the grid's children will be placed and sized in accordance with their sizeHint() and sizePolicy().

Use setMargin() to add space around the grid itself, and setSpacing() to add space between the widgets.

qgrid-m.png QGrid

Ver también:
QVBox QHBox QGridLayout

Documentación de los 'Typedef' miembros de la clase


Documentación del constructor y destructor

QGrid::QGrid ( int  n,
QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
)

Constructs a grid widget with parent parent, called name. n specifies the number of columns. The widget flags f are passed to the QFrame constructor.

QGrid::QGrid ( int  n,
Orientation  orient,
QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
)

Constructs a grid widget with parent parent, called name. If orient is Horizontal, n specifies the number of columns. If orient is Vertical, n specifies the number of rows. The widget flags f are passed to the QFrame constructor.

QGrid::QGrid ( int  n,
QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
)
QGrid::QGrid ( int  n,
Orientation  orient,
QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0 
)

Documentación de las funciones miembro

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

Reimplementado de QFrame.

void QGrid::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 QGrid::setSpacing ( int  )
void QGrid::setSpacing ( int  space)

Sets the spacing between the child widgets to space.

QSize QGrid::sizeHint ( ) const [virtual]

Reimplementado de QFrame.

QSize QGrid::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'