QSpacerItem(3qt)

QSpacerItem3qt

Blank space in a layout

Usage

#include <qlayout.h>

Inherits QLayoutItem.

Public Members

QSpacerItem ( int w, int h, QSizePolicy::SizeType hData = QSizePolicy::Minimum, QSizePolicy::SizeType vData = QSizePolicy::Minimum )
void changeSize ( int w, int h, QSizePolicy::SizeType hData = QSizePolicy::Minimum, QSizePolicy::SizeType vData = QSizePolicy::Minimum )
virtual QSize sizeHint () const
virtual QSize minimumSize () const
virtual QSize maximumSize () const
virtual QSizePolicy::ExpandData expanding () const
virtual bool isEmpty () const
virtual void setGeometry ( const QRect & r )

Overview

The QSpacerItem class provides blank space in a layout.

This class is used by custom layouts.

See also QLayout, QLayout::spacerItem(), Widget Appearance and Style, and Layout Management.

Member function documentation

QSpacerItem::QSpacerItem ( int w, int h, QSizePolicy::SizeType hData = QSizePolicy::Minimum, QSizePolicy::SizeType vData = 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 provide 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 provide a gap that is able to stretch if nothing else wants the space.

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

Returns the direction in which this spacer item will expand.

See also QSizePolicy::ExpandData.

Reimplemented from QLayoutItem.

bool QSpacerItem::isEmpty () const [virtual]

Returns TRUE because a spacer item never contains widgets.

Reimplemented from QLayoutItem.

QSize QSpacerItem::maximumSize () const [virtual]

Returns the maximum size of this spacer item.

Reimplemented from QLayoutItem.

QSize QSpacerItem::minimumSize () const [virtual]

Returns the minimum size of this spacer item.

Reimplemented from QLayoutItem.

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

Stores the spacer item's rect r so that it can be returned by geometry().

Reimplemented from QLayoutItem.

QSize QSpacerItem::sizeHint () const [virtual]

Returns the preferred size of this spacer item.

Reimplemented from QLayoutItem.

Releases

6 releases since Debian 2.2 (Potato); the text changed 4 times.

  1. 2.2
  2. 3.0
  3. 3.1
  4. 4.0
  5. 5.0–6.0

Author

Generated automatically from the source code.

Bugs

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you.

The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.

If you find errors in this manual page, please report them to [email protected]. Please include the name of the manual page (qspaceritem.3qt) and the Qt version (3.3.8).

From qt3-doc 3:3.3.8b-7 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.