HomeHome

Classes - Annotated - Tree - Functions - Home - Structure Qte

QSpacerItem Class Reference


The QLayoutItem class that represents blank space. More...

#include <qabstractlayout.h>

Inherits QLayoutItem.

List of all member functions.

Public Members


Detailed Description

The QLayoutItem class that represents blank space.

For custom layouts.

See also QLayout.


Member Function Documentation

QSpacerItem::QSpacerItem ( int w, int h, QSizePolicy::SizeType hData=QSizePolicy::Minimum=QSizePolicy::Minimum, QSizePolicy::SizeType vData= QSizePolicy::Minimum= QSizePolicy::Minimum )

Constructs a spacer item with preferred width w, preferred height h, horizontal size policy hData and vertical size policy vData.

The default values gives a gap that is able to stretch, if nothing else wants the space.

void QSpacerItem::changeSize ( int w, int h, QSizePolicy::SizeType hData=QSizePolicy::Minimum, QSizePolicy::SizeType vData=QSizePolicy::Minimum )

Changes this spacer item to have preferred width w, preferred height h, horizontal size policy hData and vertical size policy vData.

The default values gives a gap that is able to stretch, if nothing else wants the space.

QSizePolicy::ExpandData QSpacerItem::expanding() const [virtual]

Returns whether this space item is expanding.

Reimplemented from QLayoutItem.

QRect QSpacerItem::geometry () const [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QLayoutItem.

bool QSpacerItem::isEmpty () const [virtual]

Returns TRUE, since a space item never contains widgets.

Reimplemented from QLayoutItem.

QSize QSpacerItem::maximumSize () const [virtual]

Returns the maximum size of this space item.

Reimplemented from QLayoutItem.

QSize QSpacerItem::minimumSize () const [virtual]

Returns the minimum size of this space item.

Reimplemented from QLayoutItem.

void QSpacerItem::setGeometry ( const QRect & r ) [virtual]

This function stores r, so it can be returned by geometry().

Reimplemented from QLayoutItem.

QSize QSpacerItem::sizeHint () const [virtual]

Returns the preferred size of this space item.

Reimplemented from QLayoutItem.

QSpacerItem * QSpacerItem::spacerItem () [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QLayoutItem.


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


This file is part of the Qt toolkit, copyright © 1995-2005 Trolltech, all rights reserved.


Copyright © 2005 TrolltechTrademarks
Qt version 2.3.10