Qt logo

QGrid Class Reference


The QGrid widget performs geometry management on its children More...

#include <qgrid.h>

Inherits QFrame.

List of all member functions.

Public Members

Protected Members


Detailed Description

The QGrid widget performs geometry management on its children

The number of rows or columns is defined in the constructor. All its children will be placed and sized according to their sizeHint() and sizePolicy() return values.

Use setMargin() to add space around the edge, and use addSpacing to add space between the widgets.

See also: QVBox and QHBox.


Member Function Documentation

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

Constructs a grid widget with parent parent and name name. n specifies the number of columns.

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

Constructs a grid widget with parent parent and name name. If dir is Horizontal, n specifies the number of columns. If dir is Vertical, n specifies the number of rows.

void QGrid::frameChanged () [virtual protected]

Reimplemented for internal purposes.

Reimplemented from QFrame.

void QGrid::setSpacing ( int space )

Sets the spacing between children to space.


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-99 Troll Tech, all rights reserved.


Copyright © 1999 Troll TechTrademarks
Qt version 2.0.2