Qt 3 Support Members for QSplitterThe following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code. Public Types
Public Functions
Member Type Documentation
|
Constant | Value | Description |
---|---|---|
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.
Use one of the constructors that doesn't take the name argument and then use setObjectName() instead.
Use one of the constructors that don't take the name argument and then use setObjectName() instead.
Returns the width of the margin around the contents of the widget.
Use QWidget::getContentsMargins() instead.
See also setMargin() and QWidget::getContentsMargins().
Use insertWidget(0, widget) instead.
Use addWidget(widget) instead.
Use setCollapsible(indexOf(widget, collapsible)) instead.
Sets the width of the margin around the contents of the widget to margin.
Use QWidget::setContentsMargins() instead.
See also margin() and QWidget::setContentsMargins().
Use setStretchFactor() instead.
For example, if you have code like
splitter->setResizeMode(firstChild, QSplitter::KeepSize); splitter->setResizeMode(secondChild, QSplitter::Stretch);
you can rewrite it as
splitter->setStretchFactor(splitter->indexOf(firstChild), 0); splitter->setStretchFactor(splitter->indexOf(secondChild), 1);
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.