Qt:Документация 4.3.2/qboxlayout-qt3

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Qt 3 Support Members for QBoxLayout

Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.



[править] Открытые функции

  • QBoxLayout ( QWidget * parent, Direction dir, int margin = 0, int spacing = -1, const char * name = 0 )
  • QBoxLayout ( QLayout * parentLayout, Direction dir, int spacing = -1, const char * name = 0 )
  • QBoxLayout ( Direction dir, int spacing, const char * name = 0 )
  • int findWidget ( QWidget * widget )
  • 11 public functions inherited from QLayout
  • 8 открытых функций, унаследованных от QObject

[править] Описание функций-членов

[править]
QBoxLayout::QBoxLayout ( QWidget * parent, Direction dir, int margin = 0, int spacing = -1, const char * name = 0 )

Constructs a new QBoxLayout with direction dir and main widget parent. parent may not be 0.

The margin is the number of pixels between the edge of the widget and its managed children. The spacing is the default number of pixels between neighboring children. If spacing is -1 the value of margin is used for spacing.

name is the internal object name.

See also direction().

[править]
QBoxLayout::QBoxLayout ( QLayout * parentLayout, Direction dir, int spacing = -1, const char * name = 0 )

Constructs a new QBoxLayout called name, with direction dir, and inserts it into parentLayout.

The spacing is the default number of pixels between neighboring children. If spacing is -1, the layout will inherit its parent's spacing().

[править]
QBoxLayout::QBoxLayout ( Direction dir, int spacing, const char * name = 0 )

Constructs a new QBoxLayout called name, with direction dir.

If spacing is -1, the layout will inherit its parent's spacing(); otherwise spacing is used.

You must insert this box into another layout.

[править]
int QBoxLayout::findWidget ( QWidget * widget )

Use indexOf(widget) instead.



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2