Qt:Документация 4.3.2/qsplitter-qt3
Материал из Wiki.crossplatform.ru
![]() | Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] Qt 3 Support Members for QSplitter
Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.
[править] Открытые типы
- enum ResizeMode { Auto, Stretch, KeepSize, FollowSizeHint }
[править] Открытые функции
- QSplitter ( QWidget * parent, const char * name )
- QSplitter ( Qt::Orientation orientation, QWidget * parent, const char * name )
- int margin () const
- void moveToFirst ( QWidget * widget )
- void moveToLast ( QWidget * widget )
- void setCollapsible ( QWidget * widget, bool collapsible )
- void setMargin ( int margin )
- void setResizeMode ( QWidget * widget, ResizeMode mode )
- 60 открытых функций, унаследованных от QWidget
- 8 открытых функций, унаследованных от QObject
- 8 открытых функций, унаследованных от QPaintDevice
[править] Описание типов
[править] enum QSplitter::ResizeMode
This enum describes the different resizing behaviors child widgets can have:
Константа | Значение | Описание |
---|---|---|
QSplitter::Auto | 3 | The widget will be resized according to the stretch factors set in its sizePolicy(). |
QSplitter::Stretch | 0 | The widget will be resized when the splitter itself is resized. |
QSplitter::KeepSize | 1 | QSplitter will try to keep the widget's size unchanged. |
QSplitter::FollowSizeHint | 2 | QSplitter will resize the widget when the widget's size hint changes. |
Use setStretchFactor() instead.
[править] Описание функций-членов
[править] QSplitter::QSplitter ( QWidget * parent, const char * name )
Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.
[править] QSplitter::QSplitter ( Qt::Orientation orientation, QWidget * parent, const char * name )
Use one of the constructors that don't take the name argument and then use setObjectName() instead.
[править] int QSplitter::margin () const
Returns the with of the the margin around the contents of the widget.
Use QWidget::getContentsMargins() instead.
See also setMargin() and QWidget::getContentsMargins().
[править] void QSplitter::moveToFirst ( QWidget * widget )
Use insertWidget(0, widget) instead.
[править] void QSplitter::moveToLast ( QWidget * widget )
Use addWidget(widget) instead.
[править] void QSplitter::setCollapsible ( QWidget * widget, bool collapsible )
Эта перегруженная функция предоставлена для удобства.
Use setCollapsible(indexOf(widget, collapsible)) instead.
[править] void QSplitter::setMargin ( int margin )
Sets the width of the margin around the contents of the widget to margin.
Use QWidget::setContentsMargins() instead.
See also margin() and QWidget::setContentsMargins().
[править] void QSplitter::setResizeMode ( QWidget * widget, ResizeMode mode )
Use setStretchFactor() instead.
Например, если у вас есть код
splitter->setResizeMode(firstChild, QSplitter::KeepSize); splitter->setResizeMode(secondChild, QSplitter::Stretch);
вы можете записать его в виде
splitter->setStretchFactor(splitter->indexOf(firstChild), 0); splitter->setStretchFactor(splitter->indexOf(secondChild), 1);
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|