<trbgcolor=#f0f0f0><td><b><ahref="qboxlayout.html">TQBoxLayout</a></b><td>Lines up child widgets horizontally or vertically
<trbgcolor=#f0f0f0><td><b><ahref="tqboxlayout.html">TQBoxLayout</a></b><td>Lines up child widgets horizontally or vertically
<trbgcolor=#f0f0f0><td><b><ahref="tqbrush.html">TQBrush</a></b><td>Defines the fill pattern of shapes drawn by a TQPainter
<trbgcolor=#f0f0f0><td><b><ahref="tqbuffer.html">TQBuffer</a></b><td>I/O device that operates on a TQByteArray
<trbgcolor=#f0f0f0><td><b><ahref="tqbutton.html">TQButton</a></b><td>The abstract base class of button widgets, providing functionality common to buttons
<ahref="tqbuttongroup.html">TQButtonGroup</a> *bgrp2 = new <ahref="tqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 2 (non-exclusive)", this );
// create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons
<ahref="tqbuttongroup.html">TQButtonGroup</a> *bgrp3 = new <ahref="tqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 3 (Radiobutton-exclusive)", this );
// create a groupbox which layouts its childs in a columns
<ahref="ntqgroupbox.html">TQGroupBox</a> *bgrp4 = new <ahref="tqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Groupbox with normal buttons", this );
<ahref="tqgroupbox.html">TQGroupBox</a> *bgrp4 = new <ahref="tqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Groupbox with normal buttons", this );
<p> First we define an iterator over the layout. Layout iterators are used
internally by the layout system to handle deletion of widgets. They
are also available for application programmers.
<p> There are two different classes involved: <ahref="qlayoutiterator.html">TQLayoutIterator</a> is the class
<p> There are two different classes involved: <ahref="tqlayoutiterator.html">TQLayoutIterator</a> is the class
that is visible to application programmers, it is <ahref="shclass.html#explicitly-shared">explicitly shared</a>.
The TQLayoutIterator contains a <ahref="qglayoutiterator.html">TQGLayoutIterator</a> that does all the
The TQLayoutIterator contains a <ahref="tqglayoutiterator.html">TQGLayoutIterator</a> that does all the
work. We must create a subclass of TQGLayoutIterator that knows how to
iterate over our layout class.
<p> In this case, we choose a simple implementation: we store an integer
index into the list and a pointer to the list. Every <ahref="qglayoutiterator.html">TQGLayoutIterator</a> subclass must implement <ahref="qglayoutiterator.html#current">current</a>(), <ahref="qglayoutiterator.html#next">next</a>() and <ahref="qglayoutiterator.html#takeCurrent">takeCurrent</a>(), as well as a
index into the list and a pointer to the list. Every <ahref="tqglayoutiterator.html">TQGLayoutIterator</a> subclass must implement <ahref="tqglayoutiterator.html#current">current</a>(), <ahref="tqglayoutiterator.html#next">next</a>() and <ahref="tqglayoutiterator.html#takeCurrent">takeCurrent</a>(), as well as a
constructor. In our example we do not need a destructor.
<p><pre>
class CardLayoutIterator : public <ahref="qglayoutiterator.html">TQGLayoutIterator</a>
class CardLayoutIterator : public <ahref="tqglayoutiterator.html">TQGLayoutIterator</a>
<p>We create a <ahref="qhboxlayout.html">TQHBoxLayout</a> in which we'll place the buttons. We've only shown the rewind button in the code above since all the others are identical except for the names of the buttons, pixmaps and signals. For each of the buttons we require we call the <ahref="tqpushbutton.html">TQPushButton</a> constructor passing it the appropriate embedded pixmap. We then add it to the layout. Finally we connect the button's<!-- index clicked() --><tt>clicked()</tt> signal to the appropriate <em>signal</em>. Since the<!-- index clicked() --><tt>clicked()</tt> signals aren't specific to our widget we want to emit signals that reflect the widget's use. The <tt>rewind()</tt>, <tt>play()</tt>, etc. signals are meaningful in the context of our widget so we propagate each button's<!-- index clicked() --><tt>clicked()</tt> signal to the appropriate widget-specific signal.</p>
<p>We create a <ahref="tqhboxlayout.html">TQHBoxLayout</a> in which we'll place the buttons. We've only shown the rewind button in the code above since all the others are identical except for the names of the buttons, pixmaps and signals. For each of the buttons we require we call the <ahref="tqpushbutton.html">TQPushButton</a> constructor passing it the appropriate embedded pixmap. We then add it to the layout. Finally we connect the button's<!-- index clicked() --><tt>clicked()</tt> signal to the appropriate <em>signal</em>. Since the<!-- index clicked() --><tt>clicked()</tt> signals aren't specific to our widget we want to emit signals that reflect the widget's use. The <tt>rewind()</tt>, <tt>play()</tt>, etc. signals are meaningful in the context of our widget so we propagate each button's<!-- index clicked() --><tt>clicked()</tt> signal to the appropriate widget-specific signal.</p>
<!-- index Forms!Creating Test Harnesses --><p>The implementation is complete, but to make sure that our widget compiles and runs we'll create a tiny test harness. The test harness will require two files, a<!-- index .pro --><tt>.pro</tt> project file and a<!-- index main.cpp --><tt>main.cpp</tt>. The <tt>qt/tools/designer/examples/vcr/vcr.pro</tt> project file:</p>
<pre>TEMPLATE = app
LANGUAGE = C++
@ -172,19 +172,19 @@ DBFILE = vcr.db
{
</pre>
<p>The constructor passes the parent and name to its superclass, <ahref="tqwidget.html">TQWidget</a>, and also initializes the private mode data, md, to File mode.</p>
<pre><ahref="qhboxlayout.html">TQHBoxLayout</a> *layout = new <ahref="qhboxlayout.html">TQHBoxLayout</a>( this );
<p>We begin by creating a horizontal box layout (<ahref="qhboxlayout.html">TQHBoxLayout</a>) and add a <ahref="tqlineedit.html">TQLineEdit</a> and a <ahref="tqpushbutton.html">TQPushButton</a> to it.</p>
<p>We begin by creating a horizontal box layout (<ahref="tqhboxlayout.html">TQHBoxLayout</a>) and add a <ahref="tqlineedit.html">TQLineEdit</a> and a <ahref="tqpushbutton.html">TQPushButton</a> to it.</p>
<aname="1-3"></a><p> It's not unusual for keyboard shortcuts to move the focus. This can
happen implicitly by opening modal dialogs, but also explicitly using
focus accelerators such as those provided by <ahref="tqlabel.html#setBuddy">TQLabel::setBuddy</a>(), <ahref="ntqgroupbox.html">TQGroupBox</a> and <ahref="tqtabbar.html">TQTabBar</a>.
focus accelerators such as those provided by <ahref="tqlabel.html#setBuddy">TQLabel::setBuddy</a>(), <ahref="tqgroupbox.html">TQGroupBox</a> and <ahref="tqtabbar.html">TQTabBar</a>.
<p> We advise supporting shortcut focus for all widgets that the user may
want to jump to. For example, a tab dialog can have keyboard shortcuts
for each of its pages, so the user can press e.g. Alt+P to step to the
<aname="3"></a><p> If you need more control over the layout, use a <ahref="ntqlayout.html">TQLayout</a> subclass. The layout classes included in TQt are <ahref="tqgridlayout.html">TQGridLayout</a> and <ahref="qboxlayout.html">TQBoxLayout</a>. (<ahref="qhboxlayout.html">TQHBoxLayout</a> and <ahref="qvboxlayout.html">TQVBoxLayout</a> are trivial subclasses of <ahref="qboxlayout.html">TQBoxLayout</a>,
<aname="3"></a><p> If you need more control over the layout, use a <ahref="tqlayout.html">TQLayout</a> subclass. The layout classes included in TQt are <ahref="tqgridlayout.html">TQGridLayout</a> and <ahref="tqboxlayout.html">TQBoxLayout</a>. (<ahref="tqhboxlayout.html">TQHBoxLayout</a> and <ahref="tqvboxlayout.html">TQVBoxLayout</a> are trivial subclasses of <ahref="tqboxlayout.html">TQBoxLayout</a>,
that are simpler to use and make the code easier to read.)
<p> When you use a layout, you must insert each child both into its parent
widget (done in the constructor) and into its layout (typically done
@ -169,14 +169,14 @@ a parameter in the constructor.
<ahref="tqlabel.html">TQLabel</a> *label = new <ahref="tqlabel.html">TQLabel</a>( "Write once, compile everywhere.", main );
// a layout on a widget
<ahref="qvboxlayout.html">TQVBoxLayout</a> *vbox = new <ahref="qvboxlayout.html">TQVBoxLayout</a>( main );
<p> The image below shows a <ahref="tqprogressdialog.html">TQProgressDialog</a>. The <ahref="tqprogressbar.html">TQProgressBar</a> can
also be used as a separate widget.
<p><center><imgsrc="qprogdlg-w.png"></center>
<p> In the screenshot below we have a <ahref="ntqgroupbox.html">TQGroupBox</a> that contains a <ahref="tqlineedit.html">TQLineEdit</a>, a read-only <ahref="tqcombobox.html">TQComboBox</a> and an editable <ahref="tqcombobox.html">TQComboBox</a>.
<p> In the screenshot below we have a <ahref="tqgroupbox.html">TQGroupBox</a> that contains a <ahref="tqlineedit.html">TQLineEdit</a>, a read-only <ahref="tqcombobox.html">TQComboBox</a> and an editable <ahref="tqcombobox.html">TQComboBox</a>.
<p><center><imgsrc="groupbox-w.png"></center>
<p> The screenshot below shows a <ahref="tqpopupmenu.html">TQPopupMenu</a>.
<p> If you used calls to <ahref="ntqinputdialog.html#getText">TQInputDialog::getText</a>(...) that provided more
than the first two required parameters you will must add a value
for the <tt>echo</tt> parameter.
<p><h2><ahref="ntqlayout.html">TQLayout</a> and Other Abstract Layout Classes
<p><h2><ahref="tqlayout.html">TQLayout</a> and Other Abstract Layout Classes
</h2>
<aname="12"></a><p> The definitions of <ahref="qglayoutiterator.html">TQGLayoutIterator</a>, <ahref="ntqlayout.html">TQLayout</a>, <ahref="qlayoutitem.html">TQLayoutItem</a>, <ahref="qlayoutiterator.html">TQLayoutIterator</a>, <ahref="qspaceritem.html">TQSpacerItem</a> and <ahref="tqwidgetitem.html">TQWidgetItem</a> have been moved from <tt><ntqabstractlayout.h></tt> to <tt><ntqlayout.h></tt>. The header <tt><ntqabstractlayout.h></tt> now includes <tt><ntqlayout.h></tt> for compatibility. It
<aname="12"></a><p> The definitions of <ahref="tqglayoutiterator.html">TQGLayoutIterator</a>, <ahref="tqlayout.html">TQLayout</a>, <ahref="tqlayoutitem.html">TQLayoutItem</a>, <ahref="tqlayoutiterator.html">TQLayoutIterator</a>, <ahref="tqspaceritem.html">TQSpacerItem</a> and <ahref="tqwidgetitem.html">TQWidgetItem</a> have been moved from <tt><ntqabstractlayout.h></tt> to <tt><tqlayout.h></tt>. The header <tt><ntqabstractlayout.h></tt> now includes <tt><tqlayout.h></tt> for compatibility. It
@ -1399,8 +1399,8 @@ frame and the outermost pixel of <a href="tqframe.html#contentsRect">conte
</doc>
</property>
<property>
<name>QGroupBox::alignment</name>
<doc href="ntqgroupbox.html#alignment-prop">
<name>TQGroupBox::alignment</name>
<doc href="tqgroupbox.html#alignment-prop">
<p>This property holds the alignment of the group box title.
<p>The title is always placed on the upper frame line. The horizontal
alignment can be specified by the alignment parameter.
@ -1415,62 +1415,62 @@ usually to the left.
<p> The default alignment is <a href="ntqt.html#AlignmentFlags-enum">AlignAuto</a>.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>.
<p>Set this property's value with <a href="ntqgroupbox.html#setAlignment">setAlignment</a>() and get this property's value with <a href="ntqgroupbox.html#alignment">alignment</a>().
<p>Set this property's value with <a href="tqgroupbox.html#setAlignment">setAlignment</a>() and get this property's value with <a href="tqgroupbox.html#alignment">alignment</a>().
</doc>
</property>
<property>
<name>QGroupBox::checkable</name>
<doc href="ntqgroupbox.html#checkable-prop">
<name>TQGroupBox::checkable</name>
<doc href="tqgroupbox.html#checkable-prop">
<p>This property holds whether the group box has a checkbox in its title.
<p>If this property is TRUE, the group box has a checkbox. If the
checkbox is checked (which is the default), the group box's
children are enabled.
<p> <a href="ntqgroupbox.html#setCheckable">setCheckable</a>() controls whether or not the group box has a
checkbox, and <a href="ntqgroupbox.html#isCheckable">isCheckable</a>() controls whether the checkbox is
<p> <a href="tqgroupbox.html#setCheckable">setCheckable</a>() controls whether or not the group box has a
checkbox, and <a href="tqgroupbox.html#isCheckable">isCheckable</a>() controls whether the checkbox is
checked or not.
<p>Set this property's value with <a href="ntqgroupbox.html#setCheckable">setCheckable</a>() and get this property's value with <a href="ntqgroupbox.html#isCheckable">isCheckable</a>().
<p>Set this property's value with <a href="tqgroupbox.html#setCheckable">setCheckable</a>() and get this property's value with <a href="tqgroupbox.html#isCheckable">isCheckable</a>().
</doc>
</property>
<property>
<name>QGroupBox::checked</name>
<doc href="ntqgroupbox.html#checked-prop">
<name>TQGroupBox::checked</name>
<doc href="tqgroupbox.html#checked-prop">
<p>This property holds whether the group box's checkbox is checked.
<p>If the group box has a check box (see <a href="ntqgroupbox.html#isCheckable">isCheckable</a>()), and the
check box is checked (see <a href="ntqgroupbox.html#isChecked">isChecked</a>()), the group box's children
<p>If the group box has a check box (see <a href="tqgroupbox.html#isCheckable">isCheckable</a>()), and the
check box is checked (see <a href="tqgroupbox.html#isChecked">isChecked</a>()), the group box's children
are enabled. If the checkbox is unchecked the children are
disabled.
<p>Set this property's value with <a href="ntqgroupbox.html#setChecked">setChecked</a>() and get this property's value with <a href="ntqgroupbox.html#isChecked">isChecked</a>().
<p>Set this property's value with <a href="tqgroupbox.html#setChecked">setChecked</a>() and get this property's value with <a href="tqgroupbox.html#isChecked">isChecked</a>().
</doc>
</property>
<property>
<name>QGroupBox::columns</name>
<doc href="ntqgroupbox.html#columns-prop">
<p>This property holds the number of columns or rows (depending on <a href="ntqgroupbox.html#orientation-prop">QGroupBox::orientation</a>) in the group box.
<name>TQGroupBox::columns</name>
<doc href="tqgroupbox.html#columns-prop">
<p>This property holds the number of columns or rows (depending on <a href="tqgroupbox.html#orientation-prop">TQGroupBox::orientation</a>) in the group box.
<p>Usually it is not a good idea to set this property because it is
slow (it does a complete layout). It is best to set the number
of columns directly in the constructor.
<p>Set this property's value with <a href="ntqgroupbox.html#setColumns">setColumns</a>() and get this property's value with <a href="ntqgroupbox.html#columns">columns</a>().
<p>Set this property's value with <a href="tqgroupbox.html#setColumns">setColumns</a>() and get this property's value with <a href="tqgroupbox.html#columns">columns</a>().
</doc>
</property>
<property>
<name>QGroupBox::flat</name>
<doc href="ntqgroupbox.html#flat-prop">
<name>TQGroupBox::flat</name>
<doc href="tqgroupbox.html#flat-prop">
<p>This property holds whether the group box is painted flat or has a frame.
<p>By default a group box has a surrounding frame, with the title
being placed on the upper frame line. In flat mode the right, left
and bottom frame lines are omitted, and only the thin line at the
top is drawn.
<p> <p>See also <a href="ntqgroupbox.html#title-prop">title</a>.
<p> <p>See also <a href="tqgroupbox.html#title-prop">title</a>.
<p>Set this property's value with <a href="ntqgroupbox.html#setFlat">setFlat</a>() and get this property's value with <a href="ntqgroupbox.html#isFlat">isFlat</a>().
<p>Set this property's value with <a href="tqgroupbox.html#setFlat">setFlat</a>() and get this property's value with <a href="tqgroupbox.html#isFlat">isFlat</a>().
</doc>
</property>
<property>
<name>QGroupBox::orientation</name>
<doc href="ntqgroupbox.html#orientation-prop">
<name>TQGroupBox::orientation</name>
<doc href="tqgroupbox.html#orientation-prop">
<p>This property holds the group box's orientation.
<p>A horizontal group box arranges it's children in columns, while a
vertical group box arranges them in rows.
@ -1478,12 +1478,12 @@ vertical group box arranges them in rows.
slow (it does a complete layout). It is better to set the
orientation directly in the constructor.
<p>Set this property's value with <a href="ntqgroupbox.html#setOrientation">setOrientation</a>() and get this property's value with <a href="ntqgroupbox.html#orientation">orientation</a>().
<p>Set this property's value with <a href="tqgroupbox.html#setOrientation">setOrientation</a>() and get this property's value with <a href="tqgroupbox.html#orientation">orientation</a>().
</doc>
</property>
<property>
<name>QGroupBox::title</name>
<doc href="ntqgroupbox.html#title-prop">
<name>TQGroupBox::title</name>
<doc href="tqgroupbox.html#title-prop">
<p>This property holds the group box title text.
<p>The group box title text will have a focus-change keyboard
accelerator if the title contains &amp;, followed by a letter.
@ -1494,7 +1494,7 @@ accelerator if the title contains &amp;, followed by a letter.
This produces "<u>U</u>ser information"; Alt+U moves the <a href="focus.html#keyboard-focus">keyboard focus</a> to the group box.
<p> There is no default title text.
<p>Set this property's value with <a href="ntqgroupbox.html#setTitle">setTitle</a>() and get this property's value with <a href="ntqgroupbox.html#title">title</a>().
<p>Set this property's value with <a href="tqgroupbox.html#setTitle">setTitle</a>() and get this property's value with <a href="tqgroupbox.html#title">title</a>().
</doc>
</property>
<property>
@ -1930,36 +1930,36 @@ options.
</doc>
</property>
<property>
<name>QLayout::margin</name>
<doc href="ntqlayout.html#margin-prop">
<name>TQLayout::margin</name>
<doc href="tqlayout.html#margin-prop">
<p>This property holds the width of the outside border of the layout.
<p>For some layout classes this property has an effect only on
top-level layouts; <a href="qboxlayout.html">QBoxLayout</a> and <a href="tqgridlayout.html">TQGridLayout</a> support margins for
top-level layouts; <a href="tqboxlayout.html">TQBoxLayout</a> and <a href="tqgridlayout.html">TQGridLayout</a> support margins for
child layouts. The default value is 0.
<p> <p>See also <a href="ntqlayout.html#spacing-prop">spacing</a>.
<p> <p>See also <a href="tqlayout.html#spacing-prop">spacing</a>.
<p>Set this property's value with <a href="ntqlayout.html#setMargin">setMargin</a>() and get this property's value with <a href="ntqlayout.html#margin">margin</a>().
<p>Set this property's value with <a href="tqlayout.html#setMargin">setMargin</a>() and get this property's value with <a href="tqlayout.html#margin">margin</a>().
</doc>
</property>
<property>
<name>QLayout::resizeMode</name>
<doc href="ntqlayout.html#resizeMode-prop">
<name>TQLayout::resizeMode</name>
<doc href="tqlayout.html#resizeMode-prop">
<p>This property holds the resize mode of the layout.
<p>The default mode is <a href="ntqlayout.html#ResizeMode-enum">Auto</a>.
<p> <p>See also <a href="ntqlayout.html#ResizeMode-enum">QLayout::ResizeMode</a>.
<p>The default mode is <a href="tqlayout.html#ResizeMode-enum">Auto</a>.
<p> <p>See also <a href="tqlayout.html#ResizeMode-enum">TQLayout::ResizeMode</a>.
<p>Set this property's value with <a href="ntqlayout.html#setResizeMode">setResizeMode</a>() and get this property's value with <a href="ntqlayout.html#resizeMode">resizeMode</a>().
<p>Set this property's value with <a href="tqlayout.html#setResizeMode">setResizeMode</a>() and get this property's value with <a href="tqlayout.html#resizeMode">resizeMode</a>().
</doc>
</property>
<property>
<name>QLayout::spacing</name>
<doc href="ntqlayout.html#spacing-prop">
<name>TQLayout::spacing</name>
<doc href="tqlayout.html#spacing-prop">
<p>This property holds the spacing between widgets inside the layout.
<p>The default value is -1, which signifies that the layout's spacing
should not override the widget's spacing.
<p> <p>See also <a href="ntqlayout.html#margin-prop">margin</a>.
<p> <p>See also <a href="tqlayout.html#margin-prop">margin</a>.
<p>Set this property's value with <a href="ntqlayout.html#setSpacing">setSpacing</a>() and get this property's value with <a href="ntqlayout.html#spacing">spacing</a>().
<p>Set this property's value with <a href="tqlayout.html#setSpacing">setSpacing</a>() and get this property's value with <a href="tqlayout.html#spacing">spacing</a>().
</doc>
</property>
<property>
@ -4773,8 +4773,8 @@ widget size. The widget's size is forced to the minimum size if
the current size is smaller.
<p> If you use a layout inside the widget, the minimum size will be
set by the layout and not by <a href="tqwidget.html#setMinimumSize">setMinimumSize</a>(), unless you set the
layout's resize mode to QLayout::FreeResize.
<p> <p>See also <a href="tqwidget.html#minimumWidth-prop">minimumWidth</a>, <a href="tqwidget.html#minimumHeight-prop">minimumHeight</a>, <a href="tqwidget.html#maximumSize-prop">maximumSize</a>, <a href="tqwidget.html#sizeIncrement-prop">sizeIncrement</a>, and <a href="ntqlayout.html#resizeMode-prop">QLayout::resizeMode</a>.
layout's resize mode to TQLayout::FreeResize.
<p> <p>See also <a href="tqwidget.html#minimumWidth-prop">minimumWidth</a>, <a href="tqwidget.html#minimumHeight-prop">minimumHeight</a>, <a href="tqwidget.html#maximumSize-prop">maximumSize</a>, <a href="tqwidget.html#sizeIncrement-prop">sizeIncrement</a>, and <a href="tqlayout.html#resizeMode-prop">TQLayout::resizeMode</a>.
<p>Set this property's value with <a href="tqwidget.html#setMinimumSize">setMinimumSize</a>() and get this property's value with <a href="tqwidget.html#minimumSize">minimumSize</a>().
</doc>
@ -4789,7 +4789,7 @@ is recommended.
size if there is no layout for this widget, and returns the
layout's minimum size otherwise. Most built-in widgets reimplement
minimumSizeHint().
<p> <a href="ntqlayout.html">QLayout</a> will never resize a widget to a size smaller than
<p> <a href="tqlayout.html">TQLayout</a> will never resize a widget to a size smaller than
minimumSizeHint.
<p> <p>See also <a href="tqsize.html#isValid">TQSize::isValid</a>(), <a href="tqwidget.html#size-prop">size</a>, <a href="tqwidget.html#minimumSize-prop">minimumSize</a>, and <a href="tqwidget.html#sizePolicy-prop">sizePolicy</a>.
@ -4977,7 +4977,7 @@ visible, it is guaranteed to receive an event before it is shown.
at least <a href="tqsize.html">TQSize</a>(1, 1). For toplevel widgets, the minimum size
might be larger, depending on the window manager.
<p> If you want a top-level window to have a fixed size, call
setResizeMode( QLayout::FreeResize ) on its layout.
setResizeMode( TQLayout::FreeResize ) on its layout.
<p> <a href="tqwidget.html#resize">resize</a>() is virtual, and all other overloaded resize()
implementations in TQt call it.
<p> <b>Warning:</b> Calling resize() or <a href="tqwidget.html#setGeometry">setGeometry</a>() inside resizeEvent() can
@ -5028,9 +5028,9 @@ be disregarded by the window manager on X.
<name>TQWidget::sizePolicy</name>
<doc href="tqwidget.html#sizePolicy-prop">
<p>This property holds the default layout behavior of the widget.
<p>If there is a <a href="ntqlayout.html">QLayout</a> that manages this widget's children, the
<p>If there is a <a href="tqlayout.html">TQLayout</a> that manages this widget's children, the
size policy specified by that layout is used. If there is no such
QLayout, the result of this function is used.
TQLayout, the result of this function is used.
<p> The default policy is Preferred/Preferred, which means that the
widget can be freely resized, but prefers to be the size
<a href="tqwidget.html#sizeHint">sizeHint</a>() returns. Button-like widgets set the size policy to
@ -5045,7 +5045,7 @@ respective direction only. Widgets that can provide scrollbars
(usually subclasses of <a href="tqscrollview.html">TQScrollView</a>) tend to specify that they can
use additional space, and that they can make do with less than
sizeHint().
<p> <p>See also <a href="tqwidget.html#sizeHint-prop">sizeHint</a>, <a href="ntqlayout.html">QLayout</a>, <a href="tqsizepolicy.html">TQSizePolicy</a>, and <a href="tqwidget.html#updateGeometry">updateGeometry</a>().
<p> <p>See also <a href="tqwidget.html#sizeHint-prop">sizeHint</a>, <a href="tqlayout.html">TQLayout</a>, <a href="tqsizepolicy.html">TQSizePolicy</a>, and <a href="tqwidget.html#updateGeometry">updateGeometry</a>().
<p>Set this property's value with <a href="tqwidget.html#setSizePolicy">setSizePolicy</a>() and get this property's value with <a href="tqwidget.html#sizePolicy">sizePolicy</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQBoxLayout</h1>
<p>This is the complete list of member functions for
<ahref="qboxlayout.html">TQBoxLayout</a>, including inherited members.
<ahref="tqboxlayout.html">TQBoxLayout</a>, including inherited members.
<p>Inherited by <ahref="tqhboxlayout.html">TQHBoxLayout</a> and <ahref="tqvboxlayout.html">TQVBoxLayout</a>.
<p><ahref="tqboxlayout-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<liclass=fn>enum <ahref="#Direction-enum"><b>Direction</b></a> { LeftToRight, RightToLeft, TopToBottom, BottomToTop, Down = TopToBottom, Up = BottomToTop }</li>
@ -81,20 +81,20 @@ vertically.
<p>
<p> TQBoxLayout takes the space it gets (from its parent layout or from
the <ahref="ntqlayout.html#mainWidget">mainWidget</a>()), divides it up into a row of boxes, and makes
the <ahref="tqlayout.html#mainWidget">mainWidget</a>()), divides it up into a row of boxes, and makes
each managed widget fill one box.
<p><center><imgsrc="qhbox-m.png" alt="Horizontal box with five child widgets"></center>
<p><center><imgsrc="tqhbox-m.png" alt="Horizontal box with five child widgets"></center>
<p> If the TQBoxLayout's orientation is <ahref="ntqt.html#Orientation-enum">Horizontal</a> the boxes are
placed in a row, with suitable sizes. Each widget (or other box)
will get at least its minimum size and at most its maximum size.
Any excess space is shared according to the stretch factors (more
about that below).
<p><center><imgsrc="qvbox-m.png" alt="Vertical box with five child widgets"></center>
<p><center><imgsrc="tqvbox-m.png" alt="Vertical box with five child widgets"></center>
<p> If the TQBoxLayout's orientation is <ahref="ntqt.html#Orientation-enum">Vertical</a>, the boxes are
placed in a column, again with suitable sizes.
<p> The easiest way to create a TQBoxLayout is to use one of the
convenience classes, e.g. <ahref="qhboxlayout.html">TQHBoxLayout</a> (for <ahref="ntqt.html#Orientation-enum">Horizontal</a> boxes) or
<ahref="qvboxlayout.html">TQVBoxLayout</a> (for <ahref="ntqt.html#Orientation-enum">Vertical</a> boxes). You can also use the
convenience classes, e.g. <ahref="tqhboxlayout.html">TQHBoxLayout</a> (for <ahref="ntqt.html#Orientation-enum">Horizontal</a> boxes) or
<ahref="tqvboxlayout.html">TQVBoxLayout</a> (for <ahref="ntqt.html#Orientation-enum">Vertical</a> boxes). You can also use the
TQBoxLayout constructor directly, specifying its direction as <ahref="#Direction-enum">LeftToRight</a>, <ahref="#Direction-enum">Down</a>, <ahref="#Direction-enum">RightToLeft</a> or <ahref="#Direction-enum">Up</a>.
<p> If the TQBoxLayout is not the top-level layout (i.e. it is not
managing all of the widget's area and children), you must add it
@ -111,7 +111,7 @@ boxes.)
functions you use to create nice and spacious dialogs. See below
for ways to set margins.
<p><li><ahref="#addStretch">addStretch</a>() to create an empty, stretchable box.
<p><li><ahref="#addLayout">addLayout</a>() to add a box containing another <ahref="ntqlayout.html">TQLayout</a> to the row
<p><li><ahref="#addLayout">addLayout</a>() to add a box containing another <ahref="tqlayout.html">TQLayout</a> to the row
and set that layout's stretch factor.
</ul>
<p> Use <ahref="#insertWidget">insertWidget</a>(), <ahref="#insertSpacing">insertSpacing</a>(), <ahref="#insertStretch">insertStretch</a>() or
@ -119,18 +119,18 @@ and set that layout's stretch factor.
layout.
<p> TQBoxLayout also includes two margin widths:
<p><ul>
<li><ahref="ntqlayout.html#setMargin">setMargin</a>() sets the width of the outer border. This is the width
<li><ahref="tqlayout.html#setMargin">setMargin</a>() sets the width of the outer border. This is the width
of the reserved space along each of the TQBoxLayout's four sides.
<li><ahref="ntqlayout.html#setSpacing">setSpacing</a>() sets the width between neighboring boxes. (You
<li><ahref="tqlayout.html#setSpacing">setSpacing</a>() sets the width between neighboring boxes. (You
can use <ahref="#addSpacing">addSpacing</a>() to get more space at a particular spot.)
</ul>
<p> The margin defaults to 0. The spacing defaults to the same as the
margin width for a top-level layout, or to the same as the parent
layout. Both are parameters to the constructor.
<p> To remove a widget from a layout, call <ahref="ntqlayout.html#remove">remove</a>(). Calling
<p> To remove a widget from a layout, call <ahref="tqlayout.html#remove">remove</a>(). Calling
<ahref="tqwidget.html#hide">TQWidget::hide</a>() on a widget also effectively removes the widget
from the layout until <ahref="tqwidget.html#show">TQWidget::show</a>() is called.
<p> You will almost always want to use <ahref="qvboxlayout.html">TQVBoxLayout</a> and <ahref="qhboxlayout.html">TQHBoxLayout</a>
<p> You will almost always want to use <ahref="tqvboxlayout.html">TQVBoxLayout</a> and <ahref="tqhboxlayout.html">TQHBoxLayout</a>
rather than TQBoxLayout because of their convenient constructors.
<p><p>See also <ahref="tqgrid.html">TQGrid</a>, <ahref="layout.html">Layout Overview</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
@ -147,7 +147,7 @@ rather than TQBoxLayout because of their convenient constructors.
<li><tt>TQBoxLayout::Up</tt> - The same as <ahref="#Direction-enum">BottomToTop</a>
Adds <em>layout</em> to the end of the box, with serial <ahref="layout.html#stretch-factor">stretch factor</a>
<em>stretch</em>.
<p> When a layout is constructed with another layout as its parent,
you don't need to call <ahref="#addLayout">addLayout</a>(); the child layout is
automatically added to the parent layout as it is constructed.
<p><p>See also <ahref="#insertLayout">insertLayout</a>(), <ahref="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#addWidget">addWidget</a>(), and <ahref="#addSpacing">addSpacing</a>().
<p><p>See also <ahref="#insertLayout">insertLayout</a>(), <ahref="tqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#addWidget">addWidget</a>(), and <ahref="#addSpacing">addSpacing</a>().
<p>Examples: <ahref="tutorial2-09.html#x2630">chart/optionsform.cpp</a>, <ahref="tutorial2-08.html#x2594">chart/setdataform.cpp</a>, <ahref="simple-font-demo-example.html#x2835">fonts/simple-tqfont-demo/viewer.cpp</a>, <ahref="listbox-example.html#x1422">listbox/listbox.cpp</a>, <ahref="regexptester-example.html#x2469">regexptester/regexptester.cpp</a>, and <ahref="tictac-example.html#x19">tictac/tictac.cpp</a>.
@ -230,10 +230,10 @@ that the widget fills the entire cell.
aggressively than in previous versions of TQt. A non-default
alignment now indicates that the widget should not grow to fill
the available space, but should be sized according to <ahref="#sizeHint">sizeHint</a>().
<p><p>See also <ahref="#insertWidget">insertWidget</a>(), <ahref="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#addLayout">addLayout</a>(), and <ahref="#addSpacing">addSpacing</a>().
<p><p>See also <ahref="#insertWidget">insertWidget</a>(), <ahref="tqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#addLayout">addLayout</a>(), and <ahref="#addSpacing">addSpacing</a>().
<p>Examples: <ahref="tutorial2-09.html#x2631">chart/optionsform.cpp</a>, <ahref="checklists-example.html#x423">checklists/checklists.cpp</a>, <ahref="layout-example.html#x529">layout/layout.cpp</a>, <ahref="lineedits-example.html#x169">lineedits/lineedits.cpp</a>, <ahref="listbox-example.html#x1425">listbox/listbox.cpp</a>, <ahref="tutorial1-13.html#x2411">t13/gamebrd.cpp</a>, and <ahref="tutorial1-13.html#x2401">t13/lcdrange.cpp</a>.
Inserts <em>layout</em> at position <em>index</em>, with <ahref="layout.html#stretch-factor">stretch factor</a><em>stretch</em>. If <em>index</em> is negative, the layout is added at the end.
<p><em>layout</em> becomes a child of the box layout.
<p><p>See also <ahref="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#insertWidget">insertWidget</a>(), and <ahref="#insertSpacing">insertSpacing</a>().
<p><p>See also <ahref="tqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#insertWidget">insertWidget</a>(), and <ahref="#insertSpacing">insertSpacing</a>().
@ -310,24 +310,24 @@ means that the widget fills the entire cell.
aggressively than in previous versions of TQt. A non-default
alignment now indicates that the widget should not grow to fill
the available space, but should be sized according to <ahref="#sizeHint">sizeHint</a>().
<p><p>See also <ahref="ntqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#insertLayout">insertLayout</a>(), and <ahref="#insertSpacing">insertSpacing</a>().
<p><p>See also <ahref="tqlayout.html#setAutoAdd">setAutoAdd</a>(), <ahref="#insertLayout">insertLayout</a>(), and <ahref="#insertSpacing">insertSpacing</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQGLayoutIterator</h1>
<p>This is the complete list of member functions for
<ahref="qglayoutiterator.html">TQGLayoutIterator</a>, including inherited members.
<ahref="tqglayoutiterator.html">TQGLayoutIterator</a>, including inherited members.
<p> Implemented in subclasses to return the current item, or 0 if
there is no current item.
<p>Examples: <ahref="customlayout-example.html#x1486">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1508">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1464">customlayout/flow.cpp</a>.
<p> Implemented in subclasses to move the iterator to the next item
and return that item, or 0 if there is no next item.
<p>Examples: <ahref="customlayout-example.html#x1487">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1509">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1465">customlayout/flow.cpp</a>.
<p><p>See also <ahref="ntqvbox.html">TQVBox</a>, <ahref="ntqhbox.html">TQHBox</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p><p>See also <ahref="tqvbox.html">TQVBox</a>, <ahref="tqhbox.html">TQHBox</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p> TQGridLayout takes the space made available to it (by its parent
layout or by the <ahref="ntqlayout.html#mainWidget">mainWidget</a>()), divides it up into rows and
layout or by the <ahref="tqlayout.html#mainWidget">mainWidget</a>()), divides it up into rows and
columns, and puts each widget it manages into the correct cell.
<p> Columns and rows behave identically; we will discuss columns, but
there are equivalent functions for rows.
@ -98,12 +98,12 @@ minimum width of each widget in that column. The stretch factor is
set using <ahref="#setColStretch">setColStretch</a>() and determines how much of the available
space the column will get over and above its necessary minimum.
<p> Normally, each managed widget or layout is put into a cell of its
own using <ahref="#addWidget">addWidget</a>(), <ahref="#addLayout">addLayout</a>() or by the <ahref="ntqlayout.html#setAutoAdd">auto-add facility</a>. It is also
own using <ahref="#addWidget">addWidget</a>(), <ahref="#addLayout">addLayout</a>() or by the <ahref="tqlayout.html#setAutoAdd">auto-add facility</a>. It is also
possible for a widget to occupy multiple cells using
<ahref="#addMultiCellWidget">addMultiCellWidget</a>(). If you do this, TQGridLayout will guess how
to distribute the size over the columns/rows (based on the stretch
factors).
<p> To remove a widget from a layout, call <ahref="ntqlayout.html#remove">remove</a>(). Calling
<p> To remove a widget from a layout, call <ahref="tqlayout.html#remove">remove</a>(). Calling
<ahref="tqwidget.html#hide">TQWidget::hide</a>() on a widget also effectively removes the widget
from the layout until <ahref="tqwidget.html#show">TQWidget::show</a>() is called.
<p> This illustration shows a fragment of a dialog with a five-column,
@ -160,17 +160,17 @@ between cells. If <em>space</em> is -1, the value of <em>margin</em> is used.
</h3>
Constructs a new grid with <em>nRows</em> rows and <em>nCols</em> columns. If
<em>spacing</em> is -1, this TQGridLayout inherits its parent's
<ahref="ntqlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. The grid layout is called
<ahref="tqlayout.html#spacing">spacing</a>(); otherwise <em>spacing</em> is used. The grid layout is called
<em>name</em>.
<p> You must insert this grid into another layout. You can insert
widgets and layouts into this layout at any time, but laying out
will not be performed before this is inserted into another layout.
Adds the <em>item</em> to the cell grid, spanning multiple rows/columns.
<p> The cell will span from <em>fromRow</em>, <em>fromCol</em> to <em>toRow</em>, <em>toCol</em>. Alignment is specified by <em>alignment</em>, which is a bitwise
OR of <ahref="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> values. The default alignment is 0,
which means that the widget fills the entire cell.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQGroupBox</h1>
<p>This is the complete list of member functions for
<ahref="ntqgroupbox.html">TQGroupBox</a>, including inherited members.
<ahref="tqgroupbox.html">TQGroupBox</a>, including inherited members.
<p>Inherited by <ahref="tqbuttongroup.html">TQButtonGroup</a>, <ahref="ntqhgroupbox.html">TQHGroupBox</a>, and <ahref="ntqvgroupbox.html">TQVGroupBox</a>.
<p><ahref="qgroupbox-members.html">List of all member functions.</a>
<p>Inherited by <ahref="tqbuttongroup.html">TQButtonGroup</a>, <ahref="tqhgroupbox.html">TQHGroupBox</a>, and <ahref="tqvgroupbox.html">TQVGroupBox</a>.
<p><ahref="tqgroupbox-members.html">List of all member functions.</a>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQHBox</h1>
<p>This is the complete list of member functions for
<ahref="ntqhbox.html">TQHBox</a>, including inherited members.
<ahref="tqhbox.html">TQHBox</a>, including inherited members.
<p><p>See also <ahref="qhboxlayout.html">TQHBoxLayout</a>, <ahref="ntqvbox.html">TQVBox</a>, <ahref="tqgrid.html">TQGrid</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<p><p>See also <ahref="tqhboxlayout.html">TQHBoxLayout</a>, <ahref="tqvbox.html">TQVBox</a>, <ahref="tqgrid.html">TQGrid</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQHBoxLayout</h1>
<p>This is the complete list of member functions for
<ahref="qhboxlayout.html">TQHBoxLayout</a>, including inherited members.
<ahref="tqhboxlayout.html">TQHBoxLayout</a>, including inherited members.
<p><p>See also <ahref="qvboxlayout.html">TQVBoxLayout</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="layout.html">the Layout overview</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p><p>See also <ahref="tqvboxlayout.html">TQVBoxLayout</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="layout.html">the Layout overview</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQHButtonGroup</h1>
<p>This is the complete list of member functions for
<ahref="ntqhbuttongroup.html">TQHButtonGroup</a>, including inherited members.
<ahref="tqhbuttongroup.html">TQHButtonGroup</a>, including inherited members.
<p><p>See also <ahref="ntqvbuttongroup.html">TQVButtonGroup</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<p><p>See also <ahref="tqvbuttongroup.html">TQVButtonGroup</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQHGroupBox</h1>
<p>This is the complete list of member functions for
<ahref="ntqhgroupbox.html">TQHGroupBox</a>, including inherited members.
<ahref="tqhgroupbox.html">TQHGroupBox</a>, including inherited members.
<p><p>See also <ahref="ntqvgroupbox.html">TQVGroupBox</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<p><p>See also <ahref="tqvgroupbox.html">TQVGroupBox</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
@ -231,7 +231,7 @@ See the <a href="tqlabel.html#alignment-prop">"alignment"</a> property for detai
<p> When auto-resizing is enabled the label will resize itself to fit
the contents whenever the contents change. The top-left corner is
not moved. This is useful for TQLabel widgets that are not managed by
a <ahref="ntqlayout.html">TQLayout</a> (e.g., top-level widgets).
a <ahref="tqlayout.html">TQLayout</a> (e.g., top-level widgets).
<p> Auto-resizing is disabled by default.
<p><p>See also <ahref="#autoResize">autoResize</a>(), <ahref="tqwidget.html#adjustSize">adjustSize</a>(), and <ahref="tqwidget.html#sizeHint-prop">sizeHint</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQLayout</h1>
<p>This is the complete list of member functions for
<ahref="ntqlayout.html">TQLayout</a>, including inherited members.
<ahref="tqlayout.html">TQLayout</a>, including inherited members.
<p>Inherits <ahref="tqobject.html">TQObject</a> and <ahref="tqlayoutitem.html">TQLayoutItem</a>.
<p>Inherited by <ahref="tqgridlayout.html">TQGridLayout</a> and <ahref="tqboxlayout.html">TQBoxLayout</a>.
<p><ahref="tqlayout-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<liclass=fn>enum <ahref="#ResizeMode-enum"><b>ResizeMode</b></a> { FreeResize, Minimum, Fixed, Auto }</li>
@ -91,17 +91,17 @@ The TQLayout class is the base class of geometry managers.
<p>
<p> This is an abstract base class inherited by the concrete classes,
<ahref="qboxlayout.html">TQBoxLayout</a> and <ahref="tqgridlayout.html">TQGridLayout</a>.
<ahref="tqboxlayout.html">TQBoxLayout</a> and <ahref="tqgridlayout.html">TQGridLayout</a>.
<p> For users of TQLayout subclasses or of <ahref="tqmainwindow.html">TQMainWindow</a> there is seldom
any need to use the basic functions provided by TQLayout, such as
<ahref="#setResizeMode">setResizeMode</a>() or <ahref="#setMenuBar">setMenuBar</a>(). See the <ahref="layout.html">layout
overview page</a> for more information.
<p> To make your own layout manager, subclass <ahref="qglayoutiterator.html">TQGLayoutIterator</a> and
implement the functions <ahref="#addItem">addItem</a>(), <ahref="qlayoutitem.html#sizeHint">sizeHint</a>(), <ahref="#setGeometry">setGeometry</a>(), and
<p> To make your own layout manager, subclass <ahref="tqglayoutiterator.html">TQGLayoutIterator</a> and
implement the functions <ahref="#addItem">addItem</a>(), <ahref="tqlayoutitem.html#sizeHint">sizeHint</a>(), <ahref="#setGeometry">setGeometry</a>(), and
<ahref="#iterator">iterator</a>(). You should also implement <ahref="#minimumSize">minimumSize</a>() to ensure your
layout isn't resized to zero size if there is too little space. To
support children whose heights depend on their widths, implement
<ahref="qlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() and <ahref="qlayoutitem.html#heightForWidth">heightForWidth</a>(). See the <ahref="customlayout.html">custom layout page</a> for an in-depth
<ahref="tqlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>() and <ahref="tqlayoutitem.html#heightForWidth">heightForWidth</a>(). See the <ahref="customlayout.html">custom layout page</a> for an in-depth
description.
<p> Geometry management stops when the layout manager is deleted.
<p>See also <ahref="appearance.html">Widget Appearance and Style</a> and <ahref="geomanagement.html">Layout Management</a>.
@ -112,10 +112,10 @@ description.
<p> The possible values are:
<ul>
<li><tt>TQLayout::Auto</tt> - If the main widget is a top-level widget with no
height-for-width (<ahref="qlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>()), this is
height-for-width (<ahref="tqlayoutitem.html#hasHeightForWidth">hasHeightForWidth</a>()), this is
the same as <tt>Minimium</tt>; otherwise, this is the
same as <ahref="#ResizeMode-enum">FreeResize</a>.
<li><tt>TQLayout::Fixed</tt> - The main widget's size is set to <ahref="qlayoutitem.html#sizeHint">sizeHint</a>(); it
<li><tt>TQLayout::Fixed</tt> - The main widget's size is set to <ahref="tqlayoutitem.html#sizeHint">sizeHint</a>(); it
cannot be resized at all.
<li><tt>TQLayout::Minimum</tt> - The main widget's minimum size is set to
<ahref="#minimumSize">minimumSize</a>(); it cannot be smaller.
@ -133,7 +133,7 @@ widget and the managed children. The <em>spacing</em> sets the value of
<p> There can be only one top-level layout for a widget. It is
returned by <ahref="tqwidget.html#layout">TQWidget::layout</a>()
Constructs a new child TQLayout called <em>name</em>, and places it
inside <em>parentLayout</em> by using the default placement defined by
@ -167,12 +167,12 @@ to lay it out.
layout. This function uses <ahref="#addItem">addItem</a>().
<p>Examples: <ahref="customlayout-example.html#x1489">customlayout/border.cpp</a> and <ahref="customlayout-example.html#x1536">customlayout/main.cpp</a>.
<p> Implemented in subclasses to add an <em>item</em>. How it is added is
@ -181,13 +181,13 @@ specific to each subclass.
the layout's responsibility to delete it.
<p>Examples: <ahref="customlayout-example.html#x1490">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1511">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1467">customlayout/flow.cpp</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#addItem-2">TQGridLayout</a> and <ahref="qboxlayout.html#addItem">TQBoxLayout</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#addItem-2">TQGridLayout</a> and <ahref="tqboxlayout.html#addItem">TQBoxLayout</a>.
Returns whether this layout can make use of more space than
<ahref="qlayoutitem.html#sizeHint">sizeHint</a>(). A value of <ahref="ntqt.html#Orientation-enum">Vertical</a> or <ahref="ntqt.html#Orientation-enum">Horizontal</a> means that it wants
<ahref="tqlayoutitem.html#sizeHint">sizeHint</a>(). A value of <ahref="ntqt.html#Orientation-enum">Vertical</a> or <ahref="ntqt.html#Orientation-enum">Horizontal</a> means that it wants
to grow in only one dimension, whereas <tt>BothDirections</tt> means that
it wants to grow in both dimensions.
<p> The default implementation returns <tt>BothDirections</tt>.
<p>Examples: <ahref="customlayout-example.html#x1491">customlayout/border.cpp</a> and <ahref="customlayout-example.html#x1468">customlayout/flow.cpp</a>.
<p>Reimplemented from <ahref="qlayoutitem.html#expanding">TQLayoutItem</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#expanding">TQGridLayout</a> and <ahref="qboxlayout.html#expanding">TQBoxLayout</a>.
<p>Reimplemented from <ahref="tqlayoutitem.html#expanding">TQLayoutItem</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#expanding">TQGridLayout</a> and <ahref="tqboxlayout.html#expanding">TQBoxLayout</a>.
<p> Implemented in subclasses to return an iterator that iterates over
@ -250,15 +250,15 @@ this layout's children.
<pre>
TQLayoutIterator MyLayout::iterator()
{
<ahref="qglayoutiterator.html">TQGLayoutIterator</a> *i = new MyLayoutIterator( internal_data );
<ahref="tqglayoutiterator.html">TQGLayoutIterator</a> *i = new MyLayoutIterator( internal_data );
return TQLayoutIterator( i );
}
</pre>
where MyLayoutIterator is a subclass of <ahref="qglayoutiterator.html">TQGLayoutIterator</a>.
where MyLayoutIterator is a subclass of <ahref="tqglayoutiterator.html">TQGLayoutIterator</a>.
<p>Examples: <ahref="customlayout-example.html#x1492">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1512">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1469">customlayout/flow.cpp</a>.
<p>Reimplemented from <ahref="qlayoutitem.html#iterator">TQLayoutItem</a>.
<p>Reimplemented from <ahref="tqlayoutitem.html#iterator">TQLayoutItem</a>.
@ -292,8 +292,8 @@ specifications. Does not include what's needed by <a href="#margin">margin</a>()
<p> The default implementation allows unlimited resizing.
<p>Examples: <ahref="customlayout-example.html#x1493">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1513">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1470">customlayout/flow.cpp</a>.
<p>Reimplemented from <ahref="qlayoutitem.html#minimumSize">TQLayoutItem</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#minimumSize">TQGridLayout</a> and <ahref="qboxlayout.html#minimumSize">TQBoxLayout</a>.
<p>Reimplemented from <ahref="tqlayoutitem.html#minimumSize">TQLayoutItem</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#minimumSize">TQGridLayout</a> and <ahref="tqboxlayout.html#minimumSize">TQBoxLayout</a>.
This function is reimplemented in subclasses to perform layout.
<p> The default implementation maintains the <ahref="qlayoutitem.html#geometry">geometry</a>() information
<p> The default implementation maintains the <ahref="tqlayoutitem.html#geometry">geometry</a>() information
given by rect <em>r</em>. Reimplementors must call this function.
<p>Examples: <ahref="customlayout-example.html#x1494">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1514">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1471">customlayout/flow.cpp</a>.
<p>Reimplemented from <ahref="qlayoutitem.html#setGeometry">TQLayoutItem</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#setGeometry">TQGridLayout</a> and <ahref="qboxlayout.html#setGeometry">TQBoxLayout</a>.
<p>Reimplemented from <ahref="tqlayoutitem.html#setGeometry">TQLayoutItem</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#setGeometry">TQGridLayout</a> and <ahref="tqboxlayout.html#setGeometry">TQBoxLayout</a>.
<h3class=fn>void <aname="setMargin"></a>TQLayout::setMargin ( int )<tt> [virtual]</tt>
</h3><p>Sets the width of the outside border of the layout.
See the <ahref="ntqlayout.html#margin-prop">"margin"</a> property for details.
See the <ahref="tqlayout.html#margin-prop">"margin"</a> property for details.
Sets the value returned by <ahref="#supportsMargin">supportsMargin</a>(). If <em>b</em> is TRUE,
@ -365,13 +365,13 @@ Sets the value returned by <a href="#supportsMargin">supportsMargin</a>(). If <e
FALSE (the default), TQLayout will add margin() around top-level
layouts.
<p> If <em>b</em> is TRUE, margin handling needs to be implemented in
<ahref="#setGeometry">setGeometry</a>(), <ahref="#maximumSize">maximumSize</a>(), <ahref="#minimumSize">minimumSize</a>(), <ahref="qlayoutitem.html#sizeHint">sizeHint</a>() and
<ahref="#setGeometry">setGeometry</a>(), <ahref="#maximumSize">maximumSize</a>(), <ahref="#minimumSize">minimumSize</a>(), <ahref="tqlayoutitem.html#sizeHint">sizeHint</a>() and
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQLayoutItem</h1>
<p>This is the complete list of member functions for
<ahref="qlayoutitem.html">TQLayoutItem</a>, including inherited members.
<ahref="tqlayoutitem.html">TQLayoutItem</a>, including inherited members.
The TQLayoutItem class provides an abstract item that a
<ahref="ntqlayout.html">TQLayout</a> manipulates.
<ahref="tqlayout.html">TQLayout</a> manipulates.
<p> This is used by custom layouts.
<p> Pure virtual functions are provided to return information about
the layout, including, <ahref="#sizeHint">sizeHint</a>(), <ahref="#minimumSize">minimumSize</a>(), <ahref="#maximumSize">maximumSize</a>()
@ -76,7 +76,7 @@ and <a href="#geometry">geometry</a>(), and its alignment with <a href="#setAlig
an iterator for the layout's children. If the concrete item is a
<ahref="tqwidget.html">TQWidget</a>, it can be retrieved using <ahref="#widget">widget</a>(). Similarly for
<ahref="#layout">layout</a>() and <ahref="#spacerItem">spacerItem</a>().
<p><p>See also <ahref="ntqlayout.html">TQLayout</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p><p>See also <ahref="tqlayout.html">TQLayout</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p> Implemented in subclasses to return the direction(s) this item
"wants" to expand in (if any).
<p>Reimplemented in <ahref="ntqlayout.html#expanding">TQLayout</a>, <ahref="qspaceritem.html#expanding">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#expanding">TQWidgetItem</a>.
<p>Reimplemented in <ahref="tqlayout.html#expanding">TQLayout</a>, <ahref="tqspaceritem.html#expanding">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#expanding">TQWidgetItem</a>.
<p><p>See also <ahref="#heightForWidth">heightForWidth</a>() and <ahref="tqwidget.html#heightForWidth">TQWidget::heightForWidth</a>().
<p>Examples: <ahref="customlayout-example.html#x1496">customlayout/border.cpp</a> and <ahref="customlayout-example.html#x1472">customlayout/flow.cpp</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#hasHeightForWidth">TQGridLayout</a> and <ahref="qboxlayout.html#hasHeightForWidth">TQBoxLayout</a>.
<p>Reimplemented in <ahref="tqgridlayout.html#hasHeightForWidth">TQGridLayout</a> and <ahref="tqboxlayout.html#hasHeightForWidth">TQBoxLayout</a>.
<p> Implemented in subclasses to return whether this item is empty,
i.e. whether it contains any widgets.
<p>Reimplemented in <ahref="ntqlayout.html#isEmpty">TQLayout</a>, <ahref="qspaceritem.html#isEmpty">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#isEmpty">TQWidgetItem</a>.
<p>Reimplemented in <ahref="tqlayout.html#isEmpty">TQLayout</a>, <ahref="tqspaceritem.html#isEmpty">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#isEmpty">TQWidgetItem</a>.
@ -178,14 +178,14 @@ If this item is a <a href="ntqlayout.html">TQLayout</a>, it is returned as a TQL
<p> Implemented in subclasses to return the maximum size of this item.
<p>Reimplemented in <ahref="ntqlayout.html#maximumSize">TQLayout</a>, <ahref="qspaceritem.html#maximumSize">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#maximumSize">TQWidgetItem</a>.
<p>Reimplemented in <ahref="tqlayout.html#maximumSize">TQLayout</a>, <ahref="tqspaceritem.html#maximumSize">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#maximumSize">TQWidgetItem</a>.
<p> Implemented in subclasses to return the minimum size of this item.
<p>Examples: <ahref="customlayout-example.html#x1497">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1515">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1474">customlayout/flow.cpp</a>.
<p>Reimplemented in <ahref="ntqlayout.html#minimumSize">TQLayout</a>, <ahref="qspaceritem.html#minimumSize">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#minimumSize">TQWidgetItem</a>.
<p>Reimplemented in <ahref="tqlayout.html#minimumSize">TQLayout</a>, <ahref="tqspaceritem.html#minimumSize">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#minimumSize">TQWidgetItem</a>.
Sets the alignment of this item to <em>a</em>, which is a bitwise OR of
@ -198,17 +198,17 @@ the <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>. Not all sub
<p> Implemented in subclasses to set this item's geometry to <em>r</em>.
<p>Examples: <ahref="customlayout-example.html#x1498">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1516">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1475">customlayout/flow.cpp</a>.
<p>Reimplemented in <ahref="ntqlayout.html#setGeometry">TQLayout</a>, <ahref="qspaceritem.html#setGeometry">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#setGeometry">TQWidgetItem</a>.
<p>Reimplemented in <ahref="tqlayout.html#setGeometry">TQLayout</a>, <ahref="tqspaceritem.html#setGeometry">TQSpacerItem</a>, and <ahref="tqwidgetitem.html#setGeometry">TQWidgetItem</a>.
<p> Implemented in subclasses to return the preferred size of this item.
<p>Examples: <ahref="customlayout-example.html#x1499">customlayout/border.cpp</a>, <ahref="customlayout-example.html#x1517">customlayout/card.cpp</a>, and <ahref="customlayout-example.html#x1476">customlayout/flow.cpp</a>.
<p>Reimplemented in <ahref="qspaceritem.html#sizeHint">TQSpacerItem</a>, <ahref="tqwidgetitem.html#sizeHint">TQWidgetItem</a>, <ahref="tqgridlayout.html#sizeHint">TQGridLayout</a>, and <ahref="qboxlayout.html#sizeHint">TQBoxLayout</a>.
<p>Reimplemented in <ahref="tqspaceritem.html#sizeHint">TQSpacerItem</a>, <ahref="tqwidgetitem.html#sizeHint">TQWidgetItem</a>, <ahref="tqgridlayout.html#sizeHint">TQGridLayout</a>, and <ahref="tqboxlayout.html#sizeHint">TQBoxLayout</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQLayoutIterator</h1>
<p>This is the complete list of member functions for
<ahref="qlayoutiterator.html">TQLayoutIterator</a>, including inherited members.
<ahref="tqlayoutiterator.html">TQLayoutIterator</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQSpacerItem</h1>
<p>This is the complete list of member functions for
<ahref="qspaceritem.html">TQSpacerItem</a>, including inherited members.
<ahref="tqspaceritem.html">TQSpacerItem</a>, including inherited members.
The TQSpacerItem class provides blank space in a layout.
<p> This class is used by custom layouts.
<p><p>See also <ahref="ntqlayout.html">TQLayout</a>, <ahref="qlayoutitem.html#spacerItem">TQLayout::spacerItem</a>(), <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p><p>See also <ahref="tqlayout.html">TQLayout</a>, <ahref="tqlayoutitem.html#spacerItem">TQLayout::spacerItem</a>(), <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQVBox</h1>
<p>This is the complete list of member functions for
<ahref="ntqvbox.html">TQVBox</a>, including inherited members.
<ahref="tqvbox.html">TQVBox</a>, including inherited members.
<p><p>See also <ahref="ntqhbox.html">TQHBox</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<p><p>See also <ahref="tqhbox.html">TQHBox</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQVBoxLayout</h1>
<p>This is the complete list of member functions for
<ahref="qvboxlayout.html">TQVBoxLayout</a>, including inherited members.
<ahref="tqvboxlayout.html">TQVBoxLayout</a>, including inherited members.
<p><p>See also <ahref="qhboxlayout.html">TQHBoxLayout</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="layout.html">the Layout overview</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p><p>See also <ahref="tqhboxlayout.html">TQHBoxLayout</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="layout.html">the Layout overview</a>, <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQVButtonGroup</h1>
<p>This is the complete list of member functions for
<ahref="ntqvbuttongroup.html">TQVButtonGroup</a>, including inherited members.
<ahref="tqvbuttongroup.html">TQVButtonGroup</a>, including inherited members.
<p><p>See also <ahref="ntqhbuttongroup.html">TQHButtonGroup</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<p><p>See also <ahref="tqhbuttongroup.html">TQHButtonGroup</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQVGroupBox</h1>
<p>This is the complete list of member functions for
<ahref="ntqvgroupbox.html">TQVGroupBox</a>, including inherited members.
<ahref="tqvgroupbox.html">TQVGroupBox</a>, including inherited members.
<p><p>See also <ahref="ntqhgroupbox.html">TQHGroupBox</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
<ahref="tqgroupbox.html">TQGroupBox</a>. Think of it as a <ahref="tqvbox.html">TQVBox</a> that offers a frame with a title.
<p><p>See also <ahref="tqhgroupbox.html">TQHGroupBox</a>, <ahref="appearance.html">Widget Appearance and Style</a>, <ahref="geomanagement.html">Layout Management</a>, and <ahref="organizers.html">Organizers</a>.
@ -681,7 +681,7 @@ indicates a "good" size for the widget.
<p><li> If your widget is a top-level window, <ahref="#setCaption">setCaption</a>() and <ahref="#setIcon">setIcon</a>() set
the title bar and icon respectively.
<p></ul>
<p><p>See also <ahref="tqevent.html">TQEvent</a>, <ahref="tqpainter.html">TQPainter</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="qboxlayout.html">TQBoxLayout</a>, and <ahref="abstractwidgets.html">Abstract Widget Classes</a>.
<p><p>See also <ahref="tqevent.html">TQEvent</a>, <ahref="tqpainter.html">TQPainter</a>, <ahref="tqgridlayout.html">TQGridLayout</a>, <ahref="tqboxlayout.html">TQBoxLayout</a>, and <ahref="abstractwidgets.html">Abstract Widget Classes</a>.
<p> Returns the layout engine that manages the geometry of this
@ -2934,7 +2934,7 @@ the current size is smaller.
<p> If you use a layout inside the widget, the minimum size will be
set by the layout and not by <ahref="#setMinimumSize">setMinimumSize</a>(), unless you set the
layout's resize mode to TQLayout::FreeResize.
<p><p>See also <ahref="#minimumWidth-prop">minimumWidth</a>, <ahref="#minimumHeight-prop">minimumHeight</a>, <ahref="#maximumSize-prop">maximumSize</a>, <ahref="#sizeIncrement-prop">sizeIncrement</a>, and <ahref="ntqlayout.html#resizeMode-prop">TQLayout::resizeMode</a>.
<p><p>See also <ahref="#minimumWidth-prop">minimumWidth</a>, <ahref="#minimumHeight-prop">minimumHeight</a>, <ahref="#maximumSize-prop">maximumSize</a>, <ahref="#sizeIncrement-prop">sizeIncrement</a>, and <ahref="tqlayout.html#resizeMode-prop">TQLayout::resizeMode</a>.
<p>Set this property's value with <ahref="#setMinimumSize">setMinimumSize</a>() and get this property's value with <ahref="#minimumSize">minimumSize</a>().
size if there is no layout for this widget, and returns the
layout's minimum size otherwise. Most built-in widgets reimplement
minimumSizeHint().
<p><ahref="ntqlayout.html">TQLayout</a> will never resize a widget to a size smaller than
<p><ahref="tqlayout.html">TQLayout</a> will never resize a widget to a size smaller than
minimumSizeHint.
<p><p>See also <ahref="tqsize.html#isValid">TQSize::isValid</a>(), <ahref="#size-prop">size</a>, <ahref="#minimumSize-prop">minimumSize</a>, and <ahref="#sizePolicy-prop">sizePolicy</a>.
@ -3120,7 +3120,7 @@ be disregarded by the window manager on X.
<p>Set this property's value with <ahref="#setSizeIncrement">setSizeIncrement</a>() and get this property's value with <ahref="#sizeIncrement">sizeIncrement</a>().
<p>This property holds the default layout behavior of the widget.
<p>If there is a <ahref="ntqlayout.html">TQLayout</a> that manages this widget's children, the
<p>If there is a <ahref="tqlayout.html">TQLayout</a> that manages this widget's children, the
size policy specified by that layout is used. If there is no such
TQLayout, the result of this function is used.
<p> The default policy is Preferred/Preferred, which means that the
@ -3137,7 +3137,7 @@ respective direction only. Widgets that can provide scrollbars
(usually subclasses of <ahref="tqscrollview.html">TQScrollView</a>) tend to specify that they can
use additional space, and that they can make do with less than
sizeHint().
<p><p>See also <ahref="#sizeHint-prop">sizeHint</a>, <ahref="ntqlayout.html">TQLayout</a>, <ahref="tqsizepolicy.html">TQSizePolicy</a>, and <ahref="#updateGeometry">updateGeometry</a>().
<p><p>See also <ahref="#sizeHint-prop">sizeHint</a>, <ahref="tqlayout.html">TQLayout</a>, <ahref="tqsizepolicy.html">TQSizePolicy</a>, and <ahref="#updateGeometry">updateGeometry</a>().
<p>Set this property's value with <ahref="#setSizePolicy">setSizePolicy</a>() and get this property's value with <ahref="#sizePolicy">sizePolicy</a>().
The TQWidgetItem class is a layout item that represents a widget.
<p> This is used by custom layouts.
<p><p>See also <ahref="ntqlayout.html">TQLayout</a>, <ahref="qlayoutitem.html#widget">TQLayout::widget</a>(), <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
<p><p>See also <ahref="tqlayout.html">TQLayout</a>, <ahref="tqlayoutitem.html#widget">TQLayout::widget</a>(), <ahref="appearance.html">Widget Appearance and Style</a>, and <ahref="geomanagement.html">Layout Management</a>.
@ -102,7 +102,7 @@ The QAccel class handles keyboard accelerator and shortcut keys.
.PP
A keyboard accelerator triggers an action when a certain key combination is pressed. The accelerator handles all keyboard activity for all the children of one top-level widget, so it is not affected by the keyboard focus.
.PP
In most cases, you will not need to use this class directly. Use the TQAction class to create actions with accelerators that can be used in both menus and toolbars. If you're only interested in menus use TQMenuData::insertItem() or TQMenuData::setAccel() to make accelerators for operations that are also available on menus. Many widgets automatically generate accelerators, such as TQButton, QGroupBox, TQLabel (with TQLabel::setBuddy()), TQMenuBar and TQTabBar. Example:
In most cases, you will not need to use this class directly. Use the TQAction class to create actions with accelerators that can be used in both menus and toolbars. If you're only interested in menus use TQMenuData::insertItem() or TQMenuData::setAccel() to make accelerators for operations that are also available on menus. Many widgets automatically generate accelerators, such as TQButton, TQGroupBox, TQLabel (with TQLabel::setBuddy()), TQMenuBar and TQTabBar. Example:
@ -66,13 +66,13 @@ Inherited by QHBoxLayout and QVBoxLayout.
.BI "void \fBinsertWidget\fR ( int index, TQWidget * widget, int stretch = 0, int alignment = 0 )"
.br
.ti -1c
.BI "void \fBinsertLayout\fR ( int index, QLayout * layout, int stretch = 0 )"
.BI "void \fBinsertLayout\fR ( int index, TQLayout * layout, int stretch = 0 )"
.br
.ti -1c
.BI "bool \fBsetStretchFactor\fR ( TQWidget * w, int stretch )"
.br
.ti -1c
.BI "bool \fBsetStretchFactor\fR ( QLayout * l, int stretch )"
.BI "bool \fBsetStretchFactor\fR ( TQLayout * l, int stretch )"
.br
.ti -1c
.BI "virtual TQSize \fBsizeHint\fR () const"
@ -105,13 +105,13 @@ Inherited by QHBoxLayout and QVBoxLayout.
.SS "Protected Members"
.in +1c
.ti -1c
.BI "void \fBinsertItem\fR ( int index, QLayoutItem * item )"
.BI "void \fBinsertItem\fR ( int index, TQLayoutItem * item )"
.br
.in -1c
.SH DESCRIPTION
The QBoxLayout class lines up child widgets horizontally or vertically.
The TQBoxLayout class lines up child widgets horizontally or vertically.
.PP
QBoxLayout takes the space it gets (from its parent layout or from the mainWidget()), divides it up into a row of boxes, and makes each managed widget fill one box.
TQBoxLayout takes the space it gets (from its parent layout or from the mainWidget()), divides it up into a row of boxes, and makes each managed widget fill one box.
.PP
<center>
.ce 1
@ -119,7 +119,7 @@ QBoxLayout takes the space it gets (from its parent layout or from the mainWidge
.PP
</center>
.PP
If the QBoxLayout's orientation is Horizontal the boxes are placed in a row, with suitable sizes. Each widget (or other box) will get at least its minimum size and at most its maximum size. Any excess space is shared according to the stretch factors (more about that below).
If the TQBoxLayout's orientation is Horizontal the boxes are placed in a row, with suitable sizes. Each widget (or other box) will get at least its minimum size and at most its maximum size. Any excess space is shared according to the stretch factors (more about that below).
.PP
<center>
.ce 1
@ -127,15 +127,15 @@ If the QBoxLayout's orientation is Horizontal the boxes are placed in a row, wit
.PP
</center>
.PP
If the QBoxLayout's orientation is Vertical, the boxes are placed in a column, again with suitable sizes.
If the TQBoxLayout's orientation is Vertical, the boxes are placed in a column, again with suitable sizes.
.PP
The easiest way to create a QBoxLayout is to use one of the convenience classes, e.g. QHBoxLayout (for Horizontal boxes) or QVBoxLayout (for Vertical boxes). You can also use the QBoxLayout constructor directly, specifying its direction as LeftToRight, Down, RightToLeft or Up.
The easiest way to create a TQBoxLayout is to use one of the convenience classes, e.g. TQHBoxLayout (for Horizontal boxes) or TQVBoxLayout (for Vertical boxes). You can also use the TQBoxLayout constructor directly, specifying its direction as LeftToRight, Down, RightToLeft or Up.
.PP
If the QBoxLayout is not the top-level layout (i.e. it is not managing all of the widget's area and children), you must add it to its parent layout before you can do anything with it. The normal way to add a layout is by calling parentLayout->addLayout().
If the TQBoxLayout is not the top-level layout (i.e. it is not managing all of the widget's area and children), you must add it to its parent layout before you can do anything with it. The normal way to add a layout is by calling parentLayout->addLayout().
.PP
Once you have done this, you can add boxes to the QBoxLayout using one of four functions:
Once you have done this, you can add boxes to the TQBoxLayout using one of four functions:
.TP
addWidget() to add a widget to the QBoxLayout and set the widget's stretch factor. (The stretch factor is along the row of boxes.)
addWidget() to add a widget to the TQBoxLayout and set the widget's stretch factor. (The stretch factor is along the row of boxes.)
.IP
.TP
addSpacing() to create an empty box; this is one of the functions you use to create nice and spacious dialogs. See below for ways to set margins.
@ -144,13 +144,13 @@ addSpacing() to create an empty box; this is one of the functions you use to cre
addStretch() to create an empty, stretchable box.
.IP
.TP
addLayout() to add a box containing another QLayout to the row and set that layout's stretch factor.
addLayout() to add a box containing another TQLayout to the row and set that layout's stretch factor.
.PP
Use insertWidget(), insertSpacing(), insertStretch() or insertLayout() to insert a box at a specified position in the layout.
.PP
QBoxLayout also includes two margin widths:
TQBoxLayout also includes two margin widths:
.TP
setMargin() sets the width of the outer border. This is the width of the reserved space along each of the QBoxLayout's four sides.
setMargin() sets the width of the outer border. This is the width of the reserved space along each of the TQBoxLayout's four sides.
.TP
setSpacing() sets the width between neighboring boxes. (You can use addSpacing() to get more space at a particular spot.)
.PP
@ -158,55 +158,55 @@ The margin defaults to 0. The spacing defaults to the same as the margin width f
.PP
To remove a widget from a layout, call remove(). Calling TQWidget::hide() on a widget also effectively removes the widget from the layout until TQWidget::show() is called.
.PP
You will almost always want to use QVBoxLayout and QHBoxLayout rather than QBoxLayout because of their convenient constructors.
You will almost always want to use TQVBoxLayout and TQHBoxLayout rather than TQBoxLayout because of their convenient constructors.
.PP
See also TQGrid, Layout Overview, Widget Appearance and Style, and Layout Management.
.SS "Member Type Documentation"
.SH "QBoxLayout::Direction"
.SH "TQBoxLayout::Direction"
This type is used to determine the direction of a box layout.
.TP
\fCQBoxLayout::LeftToRight\fR - Horizontal, from left to right
\fCTQBoxLayout::LeftToRight\fR - Horizontal, from left to right
.TP
\fCQBoxLayout::RightToLeft\fR - Horizontal, from right to left
\fCTQBoxLayout::RightToLeft\fR - Horizontal, from right to left
.TP
\fCQBoxLayout::TopToBottom\fR - Vertical, from top to bottom
\fCTQBoxLayout::TopToBottom\fR - Vertical, from top to bottom
.TP
\fCQBoxLayout::Down\fR - The same as TopToBottom
\fCTQBoxLayout::Down\fR - The same as TopToBottom
.TP
\fCQBoxLayout::BottomToTop\fR - Vertical, from bottom to top
\fCTQBoxLayout::BottomToTop\fR - Vertical, from bottom to top
.TP
\fCQBoxLayout::Up\fR - The same as BottomToTop
\fCTQBoxLayout::Up\fR - The same as BottomToTop
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QBoxLayout::QBoxLayout ( TQWidget * parent, Direction d, int margin = 0, int spacing = -1, const char * name = 0 )"
Constructs a new QBoxLayout with direction \fId\fR and main widget \fIparent\fR. \fIparent\fR may not be 0.
.SH "TQBoxLayout::TQBoxLayout ( TQWidget * parent, Direction d, int margin = 0, int spacing = -1, const char * name = 0 )"
Constructs a new TQBoxLayout with direction \fId\fR and main widget \fIparent\fR. \fIparent\fR may not be 0.
.PP
The \fImargin\fR is the number of pixels between the edge of the widget and its managed children. The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1 the value of \fImargin\fR is used for \fIspacing\fR.
.PP
\fIname\fR is the internal object name.
.PP
See also direction().
.SH "QBoxLayout::QBoxLayout ( QLayout * parentLayout, Direction d, int spacing = -1, const char * name = 0 )"
Constructs a new QBoxLayout called \fIname\fR, with direction \fId\fR, and inserts it into \fIparentLayout\fR.
.SH "TQBoxLayout::TQBoxLayout ( TQLayout * parentLayout, Direction d, int spacing = -1, const char * name = 0 )"
Constructs a new TQBoxLayout called \fIname\fR, with direction \fId\fR, and inserts it into \fIparentLayout\fR.
.PP
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, the layout will inherit its parent's spacing().
.SH "QBoxLayout::QBoxLayout ( Direction d, int spacing = -1, const char * name = 0 )"
Constructs a new QBoxLayout called \fIname\fR, with direction \fId\fR.
.SH "TQBoxLayout::TQBoxLayout ( Direction d, int spacing = -1, const char * name = 0 )"
Constructs a new TQBoxLayout called \fIname\fR, with direction \fId\fR.
.PP
If \fIspacing\fR is -1, the layout will inherit its parent's spacing(); otherwise \fIspacing\fR is used.
Adds \fIlayout\fR to the end of the box, with serial stretch factor \fIstretch\fR.
.PP
When a layout is constructed with another layout as its parent, you don't need to call addLayout(); the child layout is automatically added to the parent layout as it is constructed.
@ -215,27 +215,27 @@ See also insertLayout(), setAutoAdd(), addWidget(), and addSpacing().
.PP
Examples:
.)l chart/optionsform.cpp, chart/setdataform.cpp, fonts/simple-tqfont-demo/viewer.cpp, listbox/listbox.cpp, regexptester/regexptester.cpp, and tictac/tictac.cpp.
.SH "void QBoxLayout::addSpacing ( int size )"
Adds a non-stretchable space with size \fIsize\fR to the end of this box layout. QBoxLayout provides default margin and spacing. This function adds additional space.
.SH "void TQBoxLayout::addSpacing ( int size )"
Adds a non-stretchable space with size \fIsize\fR to the end of this box layout. TQBoxLayout provides default margin and spacing. This function adds additional space.
.PP
See also insertSpacing() and addStretch().
.PP
Example: listbox/listbox.cpp.
.SH "void QBoxLayout::addStretch ( int stretch = 0 )"
.SH "void TQBoxLayout::addStretch ( int stretch = 0 )"
Adds a stretchable space with zero minimum size and stretch factor \fIstretch\fR to the end of this box layout.
.PP
See also addSpacing().
.PP
Examples:
.)l layout/layout.cpp, listbox/listbox.cpp, regexptester/regexptester.cpp, and t13/gamebrd.cpp.
.SH "void QBoxLayout::addStrut ( int size )"
.SH "void TQBoxLayout::addStrut ( int size )"
Limits the perpendicular dimension of the box (e.g. height if the box is LeftToRight) to a minimum of \fIsize\fR. Other constraints may increase the limit.
.SH "void QBoxLayout::addWidget ( TQWidget * widget, int stretch = 0, int alignment = 0 )"
.SH "void TQBoxLayout::addWidget ( TQWidget * widget, int stretch = 0, int alignment = 0 )"
Adds \fIwidget\fR to the end of this box layout, with a stretch factor of \fIstretch\fR and alignment \fIalignment\fR.
.PP
The stretch factor applies only in the direction of the QBoxLayout, and is relative to the other boxes and widgets in this QBoxLayout. Widgets and boxes with higher stretch factors grow more.
The stretch factor applies only in the direction of the TQBoxLayout, and is relative to the other boxes and widgets in this TQBoxLayout. Widgets and boxes with higher stretch factors grow more.
.PP
If the stretch factor is 0 and nothing else in the QBoxLayout has a stretch factor greater than zero, the space is distributed according to the TQWidget:sizePolicy() of each widget that's involved.
If the stretch factor is 0 and nothing else in the TQBoxLayout has a stretch factor greater than zero, the space is distributed according to the TQWidget:sizePolicy() of each widget that's involved.
.PP
Alignment is specified by \fIalignment\fR which is a bitwise OR of TQt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
.PP
@ -245,91 +245,91 @@ See also insertWidget(), setAutoAdd(), addLayout(), and addSpacing().
.PP
Examples:
.)l chart/optionsform.cpp, checklists/checklists.cpp, layout/layout.cpp, lineedits/lineedits.cpp, listbox/listbox.cpp, t13/gamebrd.cpp, and t13/lcdrange.cpp.
.SH "Direction QBoxLayout::direction () const"
.SH "Direction TQBoxLayout::direction () const"
Returns the direction of the box. addWidget() and addSpacing() work in this direction; the stretch stretches in this direction.
.PP
See also QBoxLayout::Direction, addWidget(), and addSpacing().
Returns whether this layout can make use of more space than sizeHint(). A value of Vertical or Horizontal means that it wants to grow in only one dimension, whereas \fCBothDirections\fR means that it wants to grow in both dimensions.
.PP
Reimplemented from QLayout.
.SH "int QBoxLayout::findWidget ( TQWidget * w )"
Reimplemented from TQLayout.
.SH "int TQBoxLayout::findWidget ( TQWidget * w )"
Searches for widget \fIw\fR in this layout (not including child layouts).
.PP
Returns the index of \fIw\fR, or -1 if \fIw\fR is not found.
Inserts \fIitem\fR into this box layout at position \fIindex\fR. If \fIindex\fR is negative, the item is added at the end.
.PP
\fBWarning:\fR Does not call QLayout::insertChildLayout() if \fIitem\fR is a QLayout.
\fBWarning:\fR Does not call TQLayout::insertChildLayout() if \fIitem\fR is a TQLayout.
.PP
See also addItem() and findWidget().
.SH "void QBoxLayout::insertLayout ( int index, QLayout * layout, int stretch = 0 )"
.SH "void TQBoxLayout::insertLayout ( int index, TQLayout * layout, int stretch = 0 )"
Inserts \fIlayout\fR at position \fIindex\fR, with stretch factor \fIstretch\fR. If \fIindex\fR is negative, the layout is added at the end.
.PP
\fIlayout\fR becomes a child of the box layout.
.PP
See also setAutoAdd(), insertWidget(), and insertSpacing().
.SH "void QBoxLayout::insertSpacing ( int index, int size )"
.SH "void TQBoxLayout::insertSpacing ( int index, int size )"
Inserts a non-stretchable space at position \fIindex\fR, with size \fIsize\fR. If \fIindex\fR is negative the space is added at the end.
.PP
The box layout has default margin and spacing. This function adds additional space.
.PP
See also insertStretch().
.SH "void QBoxLayout::insertStretch ( int index, int stretch = 0 )"
.SH "void TQBoxLayout::insertStretch ( int index, int stretch = 0 )"
Inserts a stretchable space at position \fIindex\fR, with zero minimum size and stretch factor \fIstretch\fR. If \fIindex\fR is negative the space is added at the end.
.PP
See also insertSpacing().
.SH "void QBoxLayout::insertWidget ( int index, TQWidget * widget, int stretch = 0, int alignment = 0 )"
.SH "void TQBoxLayout::insertWidget ( int index, TQWidget * widget, int stretch = 0, int alignment = 0 )"
Inserts \fIwidget\fR at position \fIindex\fR, with stretch factor \fIstretch\fR and alignment \fIalignment\fR. If \fIindex\fR is negative, the widget is added at the end.
.PP
The stretch factor applies only in the direction of the QBoxLayout, and is relative to the other boxes and widgets in this QBoxLayout. Widgets and boxes with higher stretch factors grow more.
The stretch factor applies only in the direction of the TQBoxLayout, and is relative to the other boxes and widgets in this TQBoxLayout. Widgets and boxes with higher stretch factors grow more.
.PP
If the stretch factor is 0 and nothing else in the QBoxLayout has a stretch factor greater than zero, the space is distributed according to the TQWidget:sizePolicy() of each widget that's involved.
If the stretch factor is 0 and nothing else in the TQBoxLayout has a stretch factor greater than zero, the space is distributed according to the TQWidget:sizePolicy() of each widget that's involved.
.PP
Alignment is specified by \fIalignment\fR, which is a bitwise OR of TQt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
.PP
From TQt 3.0, the \fIalignment\fR parameter is interpreted more aggressively than in previous versions of Qt. A non-default alignment now indicates that the widget should not grow to fill the available space, but should be sized according to sizeHint().
.PP
See also setAutoAdd(), insertLayout(), and insertSpacing().
Returns the minimum size needed by this box layout.
.PP
Reimplemented from QLayout.
.SH "void QBoxLayout::setDirection ( Direction direction )"
Reimplemented from TQLayout.
.SH "void TQBoxLayout::setDirection ( Direction direction )"
Sets the direction of this layout to \fIdirection\fR.
.SH "void QBoxLayout::setGeometry ( const TQRect & r )\fC [virtual]\fR"
.SH "void TQBoxLayout::setGeometry ( const TQRect & r )\fC [virtual]\fR"
Resizes managed widgets within the rectangle \fIr\fR.
.PP
Reimplemented from QLayout.
.SH "bool QBoxLayout::setStretchFactor ( TQWidget * w, int stretch )"
Reimplemented from TQLayout.
.SH "bool TQBoxLayout::setStretchFactor ( TQWidget * w, int stretch )"
Sets the stretch factor for widget \fIw\fR to \fIstretch\fR and returns TRUE if \fIw\fR is found in this layout (not including child layouts); otherwise returns FALSE.
.SH "bool QBoxLayout::setStretchFactor ( QLayout * l, int stretch )"
.SH "bool TQBoxLayout::setStretchFactor ( TQLayout * l, int stretch )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the stretch factor for the layout \fIl\fR to \fIstretch\fR and returns TRUE if \fIl\fR is found in this layout (not including child layouts); otherwise returns FALSE.
@ -11,9 +11,9 @@ TQButtonGroup \- Organizes TQButton widgets in a group
.SH SYNOPSIS
\fC#include <tqbuttongroup.h>\fR
.PP
Inherits QGroupBox.
Inherits TQGroupBox.
.PP
Inherited by QHButtonGroup and QVButtonGroup.
Inherited by TQHButtonGroup and TQVButtonGroup.
.PP
.SS "Public Members"
.in +1c
@ -102,7 +102,7 @@ An exclusive button group switches off all toggle buttons except the one that wa
.PP
There are two ways of using a button group:
.TP
The button group is the parent widget of a number of buttons, i.e. the button group is the parent argument in the button constructor. The buttons are assigned identifiers 0, 1, 2, etc., in the order they are created. A TQButtonGroup can display a frame and a title because it inherits QGroupBox.
The button group is the parent widget of a number of buttons, i.e. the button group is the parent argument in the button constructor. The buttons are assigned identifiers 0, 1, 2, etc., in the order they are created. A TQButtonGroup can display a frame and a title because it inherits TQGroupBox.
.TP
The button group is an invisible widget and the contained buttons have some other parent widget. In this usage, each button must be manually inserted, using insert(), into the button group and given an identifier.
.BI "virtual void \fBsetOpaqueMoving\fR ( bool b )"
@ -213,7 +213,7 @@ When you construct a dock window you \fImust\fR pass it a QDockArea or a TQMainW
.PP
In the example above we create a new TQToolBar in the constructor of a TQMainWindow subclass (so that the \fIthis\fR pointer points to the TQMainWindow). By default the toolbar will be added to the Top dock area, but we've moved it to the Left dock area.
.PP
A dock window is often used to contain a single widget. In these cases the widget can be set by calling setWidget(). If you're constructing a dock window that contains multiple widgets, e.g. a toolbar, arrange the widgets within a box layout inside the dock window. To do this use the boxLayout() function to get a pointer to the dock window's box layout, then add widgets to the layout using the box layout's QBoxLayout::addWidget() function. The dock window will dynamically set the orientation of the layout to be vertical or horizontal as necessary, although you can control this yourself with setOrientation().
A dock window is often used to contain a single widget. In these cases the widget can be set by calling setWidget(). If you're constructing a dock window that contains multiple widgets, e.g. a toolbar, arrange the widgets within a box layout inside the dock window. To do this use the boxLayout() function to get a pointer to the dock window's box layout, then add widgets to the layout using the box layout's TQBoxLayout::addWidget() function. The dock window will dynamically set the orientation of the layout to be vertical or horizontal as necessary, although you can control this yourself with setOrientation().
.PP
Although a common use of dock windows is for toolbars, they can be used with any widgets. (See the TQt Designer and TQt Linguist applications, for example.) When using larger widgets it may make sense for the dock window to be resizable by calling setResizeEnabled(). Resizable dock windows are given splitter-like handles to allow the user to resize them within their dock area. When resizable dock windows are undocked they become top level windows and can be resized like any other top level windows, e.g. by dragging a corner or edge.
.PP
@ -254,8 +254,8 @@ We recommend creating the dock area InDock with a TQMainWindow as parent then ca
Constructs a QDockWindow with parent \fIparent\fR, called \fIname\fR and with widget flags \fIf\fR.
.SH "QDockArea * QDockWindow::area () const"
Returns the dock area in which this dock window is docked, or 0 if the dock window is floating.
.SH "QBoxLayout * QDockWindow::boxLayout ()"
Returns the layout which is used for adding widgets to the dock window. The layout's orientation is set automatically to match the orientation of the dock window. You can add widgets to the layout using the box layout's QBoxLayout::addWidget() function.
.SH "TQBoxLayout * QDockWindow::boxLayout ()"
Returns the layout which is used for adding widgets to the dock window. The layout's orientation is set automatically to match the orientation of the dock window. You can add widgets to the layout using the box layout's TQBoxLayout::addWidget() function.
.PP
If the dock window only needs to contain a single widget use setWidget() instead.
@ -13,7 +13,7 @@ TQFrame \- The base class of widgets that can have a frame
.PP
Inherits TQWidget.
.PP
Inherited by QGroupBox, TQScrollView, QDockWindow, TQGrid, QHBox, TQLabel, TQLCDNumber, TQLineEdit, TQMenuBar, TQPopupMenu, TQProgressBar, QSplitter, TQToolBox, and TQWidgetStack.
Inherited by TQGroupBox, TQScrollView, QDockWindow, TQGrid, TQHBox, TQLabel, TQLCDNumber, TQLineEdit, TQMenuBar, TQPopupMenu, TQProgressBar, QSplitter, TQToolBox, and TQWidgetStack.
.PP
.SS "Public Members"
.in +1c
@ -142,7 +142,7 @@ TQPopupMenu uses this to "raise" the menu above the surrounding screen. TQProgre
.br
.fi
.PP
The TQFrame class can also be used directly for creating simple frames without any contents, although usually you would use a QHBox or QVBox because they automatically lay out the widgets you put inside the frame.
The TQFrame class can also be used directly for creating simple frames without any contents, although usually you would use a TQHBox or TQVBox because they automatically lay out the widgets you put inside the frame.
.PP
A frame widget has four attributes: frameStyle(), lineWidth(), midLineWidth(), and margin().
Implemented in subclasses. The function must remove the current item from the layout without deleting it, move the iterator to the next item and return the removed item, or 0 if no item was removed.
.PP
Examples:
.)l customlayout/border.cpp, customlayout/card.cpp, and customlayout/flow.cpp.
@ -40,7 +40,7 @@ Use setMargin() to add space around the grid itself, and setSpacing() to add spa
.PP
</center>
.PP
See also QVBox, QHBox, TQGridLayout, Widget Appearance and Style, and Layout Management.
See also TQVBox, TQHBox, TQGridLayout, Widget Appearance and Style, and Layout Management.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "TQGrid::TQGrid ( int n, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs a grid widget with parent \fIparent\fR, called \fIname\fR. \fIn\fR specifies the number of columns. The widget flags \fIf\fR are passed to the TQFrame constructor.
.BI "void \fBaddItem\fR ( QLayoutItem * item, int row, int col )"
.BI "void \fBaddItem\fR ( TQLayoutItem * item, int row, int col )"
.br
.ti -1c
.BI "void \fBaddMultiCell\fR ( QLayoutItem * item, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
.BI "void \fBaddMultiCell\fR ( TQLayoutItem * item, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
.br
.ti -1c
.BI "void \fBaddWidget\fR ( TQWidget * w, int row, int col, int alignment = 0 )"
@ -97,10 +97,10 @@ Inherits QLayout.
.BI "void \fBaddMultiCellWidget\fR ( TQWidget * w, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
.br
.ti -1c
.BI "void \fBaddLayout\fR ( QLayout * layout, int row, int col )"
.BI "void \fBaddLayout\fR ( TQLayout * layout, int row, int col )"
.br
.ti -1c
.BI "void \fBaddMultiCellLayout\fR ( QLayout * layout, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
.BI "void \fBaddMultiCellLayout\fR ( TQLayout * layout, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
.br
.ti -1c
.BI "void addRowSpacing ( int row, int minsize ) \fI(obsolete)\fR"
@ -130,7 +130,7 @@ Inherits QLayout.
.BI "bool \fBfindWidget\fR ( TQWidget * w, int * row, int * col )"
.br
.ti -1c
.BI "void \fBadd\fR ( QLayoutItem * item, int row, int col )"
.BI "void \fBadd\fR ( TQLayoutItem * item, int row, int col )"
.br
.in -1c
.SH DESCRIPTION
@ -187,7 +187,7 @@ Constructs a new TQGridLayout with \fInRows\fR rows, \fInCols\fR columns and par
Constructs a new grid with \fInRows\fR rows and \fInCols\fR columns. If \fIspacing\fR is -1, this TQGridLayout inherits its parent's spacing(); otherwise \fIspacing\fR is used. The grid layout is called \fIname\fR.
.PP
You must insert this grid into another layout. You can insert widgets and layouts into this layout at any time, but laying out will not be performed before this is inserted into another layout.
.SH "TQGridLayout::TQGridLayout ( QLayout * parentLayout, int nRows = 1, int nCols = 1, int spacing = -1, const char * name = 0 )"
.SH "TQGridLayout::TQGridLayout ( TQLayout * parentLayout, int nRows = 1, int nCols = 1, int spacing = -1, const char * name = 0 )"
Constructs a new grid that is placed inside \fIparentLayout\fR with \fInRows\fR rows and \fInCols\fR columns. If \fIspacing\fR is -1, this TQGridLayout inherits its parent's spacing(); otherwise \fIspacing\fR is used. The grid layout is called \fIname\fR.
.PP
This grid is placed according to \fIparentLayout\fR's default placement rules.
@ -195,7 +195,7 @@ This grid is placed according to \fIparentLayout\fR's default placement rules.
Destroys the grid layout. Geometry management is terminated if this is a top-level grid.
.PP
The layout's widgets aren't destroyed.
.SH "void TQGridLayout::add ( QLayoutItem * item, int row, int col )\fC [protected]\fR"
.SH "void TQGridLayout::add ( TQLayoutItem * item, int row, int col )\fC [protected]\fR"
Adds \fIitem\fR at position \fIrow\fR, \fIcol\fR. The layout takes ownership of the \fIitem\fR.
.SH "void TQGridLayout::addColSpacing ( int col, int minsize )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
@ -203,15 +203,15 @@ Adds \fIitem\fR at position \fIrow\fR, \fIcol\fR. The layout takes ownership of
Sets the minimum width of column \fIcol\fR to \fIminsize\fR pixels.
.PP
Use setColSpacing() instead.
.SH "void TQGridLayout::addItem ( QLayoutItem * item, int row, int col )"
.SH "void TQGridLayout::addItem ( TQLayoutItem * item, int row, int col )"
Adds \fIitem\fR at position \fIrow\fR, \fIcol\fR. The layout takes ownership of the \fIitem\fR.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Adds \fIitem\fR to the next free position of this layout.
.PP
Reimplemented from QLayout.
.SH "void TQGridLayout::addLayout ( QLayout * layout, int row, int col )"
Reimplemented from TQLayout.
.SH "void TQGridLayout::addLayout ( TQLayout * layout, int row, int col )"
Places the \fIlayout\fR at position (\fIrow\fR, \fIcol\fR) in the grid. The top-left position is (0, 0).
.PP
\fIlayout\fR becomes a child of the grid layout.
@ -222,11 +222,11 @@ See also addMultiCellLayout().
.PP
Examples:
.)l listbox/listbox.cpp, progressbar/progressbar.cpp, t10/main.cpp, and t13/gamebrd.cpp.
.SH "void TQGridLayout::addMultiCell ( QLayoutItem * item, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
.SH "void TQGridLayout::addMultiCell ( TQLayoutItem * item, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
Adds the \fIitem\fR to the cell grid, spanning multiple rows/columns.
.PP
The cell will span from \fIfromRow\fR, \fIfromCol\fR to \fItoRow\fR, \fItoCol\fR. Alignment is specified by \fIalignment\fR, which is a bitwise OR of TQt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
.SH "void TQGridLayout::addMultiCellLayout ( QLayout * layout, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
.SH "void TQGridLayout::addMultiCellLayout ( TQLayout * layout, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
Adds the layout \fIlayout\fR to the cell grid, spanning multiple rows/columns. The cell will span from \fIfromRow\fR, \fIfromCol\fR to \fItoRow\fR, \fItoCol\fR.
.PP
Alignment is specified by \fIalignment\fR, which is a bitwise OR of TQt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
@ -284,7 +284,7 @@ Expands this grid so that it will have \fInRows\fR rows and \fInCols\fR columns.
Returns whether this layout can make use of more space than sizeHint(). A value of Vertical or Horizontal means that it wants to grow in only one dimension, whereas \fCBothDirections\fR means that it wants to grow in both dimensions.
.PP
Reimplemented from QLayout.
Reimplemented from TQLayout.
.SH "bool TQGridLayout::findWidget ( TQWidget * w, int * row, int * col )\fC [protected]\fR"
Searches for widget \fIw\fR in this layout (not including child layouts). If \fIw\fR is found, it sets \fC<em>row</em>\fR and \fC<em>col</em>\fR to the row and column and returns TRUE; otherwise returns FALSE.
.PP
@ -292,23 +292,23 @@ Note: if a widget spans multiple rows/columns, the top-left cell is returned.
.BI "virtual void \fBsetColumnLayout\fR ( int strips, Orientation direction )"
@ -114,7 +114,7 @@ Inherited by TQButtonGroup, QHGroupBox, and QVGroupBox.
.BI "bool \fBchecked\fR - whether the group box's checkbox is checked"
.br
.ti -1c
.BI "int \fBcolumns\fR - the number of columns or rows (depending on \\l QGroupBox::orientation) in the group box"
.BI "int \fBcolumns\fR - the number of columns or rows (depending on \\l TQGroupBox::orientation) in the group box"
.br
.ti -1c
.BI "bool \fBflat\fR - whether the group box is painted flat or has a frame"
@ -127,7 +127,7 @@ Inherited by TQButtonGroup, QHGroupBox, and QVGroupBox.
.br
.in -1c
.SH DESCRIPTION
The QGroupBox widget provides a group box frame with a title.
The TQGroupBox widget provides a group box frame with a title.
.PP
A group box provides a frame, a title and a keyboard shortcut, and displays various other widgets inside itself. The title is on top, the keyboard shortcut moves keyboard focus to one of the group box's child widgets, and the child widgets are usually laid out horizontally (or vertically) inside the frame.
.PP
@ -135,7 +135,7 @@ The simplest way to use it is to create a group box with the desired number of c
.PP
It is also possible to change the orientation() and number of columns() after construction, or to ignore all the automatic layout support and manage the layout yourself. You can add 'empty' spaces to the group box with addSpace().
.PP
QGroupBox also lets you set the title() (normally set in the constructor) and the title's alignment().
TQGroupBox also lets you set the title() (normally set in the constructor) and the title's alignment().
.PP
You can change the spacing used by the group box with setInsideMargin() and setInsideSpacing(). To minimize space consumption, you can remove the right, left and bottom edges of the frame with setFlat().
.PP
@ -144,37 +144,37 @@ You can change the spacing used by the group box with setInsideMargin() and setI
.PP
See also TQButtonGroup, Widget Appearance and Style, Layout Management, and Organizers.
Constructs a group box titled \fItitle\fR. Child widgets will be arranged in \fIstrips\fR rows or columns (depending on \fIorientation\fR).
.PP
The \fIparent\fR and \fIname\fR arguments are passed to the TQWidget constructor.
.SH "QGroupBox::~QGroupBox ()"
.SH "TQGroupBox::~TQGroupBox ()"
Destroys the group box.
.SH "void QGroupBox::addSpace ( int size )"
.SH "void TQGroupBox::addSpace ( int size )"
Adds an empty cell at the next free position. If \fIsize\fR is greater than 0, the empty cell takes \fIsize\fR to be its fixed width (if orientation() is Horizontal) or height (if orientation() is Vertical).
.PP
Use this method to separate the widgets in the group box or to skip the next free cell. For performance reasons, call this method after calling setColumnLayout() or by changing the QGroupBox::columns or QGroupBox::orientation properties. It is generally a good idea to call these methods first (if needed at all), and insert the widgets and spaces afterwards.
.SH "int QGroupBox::alignment () const"
Use this method to separate the widgets in the group box or to skip the next free cell. For performance reasons, call this method after calling setColumnLayout() or by changing the TQGroupBox::columns or TQGroupBox::orientation properties. It is generally a good idea to call these methods first (if needed at all), and insert the widgets and spaces afterwards.
.SH "int TQGroupBox::alignment () const"
Returns the alignment of the group box title. See the "alignment" property for details.
.SH "int QGroupBox::columns () const"
Returns the number of columns or rows (depending on QGroupBox::orientation) in the group box. See the "columns" property for details.
.SH "int QGroupBox::insideMargin () const"
.SH "int TQGroupBox::columns () const"
Returns the number of columns or rows (depending on TQGroupBox::orientation) in the group box. See the "columns" property for details.
.SH "int TQGroupBox::insideMargin () const"
Returns the width of the empty space between the items in the group and the frame of the group.
.PP
Only applies if the group box has a defined orientation.
@ -182,7 +182,7 @@ Only applies if the group box has a defined orientation.
The default is usually 11, by may vary depending on the platform and style.
.PP
See also setInsideMargin() and orientation.
.SH "int QGroupBox::insideSpacing () const"
.SH "int TQGroupBox::insideSpacing () const"
Returns the width of the empty space between each of the items in the group.
.PP
Only applies if the group box has a defined orientation.
@ -190,45 +190,45 @@ Only applies if the group box has a defined orientation.
The default is usually 5, by may vary depending on the platform and style.
.PP
See also setInsideSpacing() and orientation.
.SH "bool QGroupBox::isCheckable () const"
.SH "bool TQGroupBox::isCheckable () const"
Returns TRUE if the group box has a checkbox in its title; otherwise returns FALSE. See the "checkable" property for details.
.SH "bool QGroupBox::isChecked () const"
.SH "bool TQGroupBox::isChecked () const"
Returns TRUE if the group box's checkbox is checked; otherwise returns FALSE. See the "checked" property for details.
.SH "bool QGroupBox::isFlat () const"
.SH "bool TQGroupBox::isFlat () const"
Returns TRUE if the group box is painted flat or has a frame; otherwise returns FALSE. See the "flat" property for details.
Returns the group box's orientation. See the "orientation" property for details.
.SH "void QGroupBox::setAlignment ( int )\fC [virtual]\fR"
.SH "void TQGroupBox::setAlignment ( int )\fC [virtual]\fR"
Sets the alignment of the group box title. See the "alignment" property for details.
.SH "void QGroupBox::setCheckable ( bool b )"
.SH "void TQGroupBox::setCheckable ( bool b )"
Sets whether the group box has a checkbox in its title to \fIb\fR. See the "checkable" property for details.
.SH "void QGroupBox::setChecked ( bool b )\fC [slot]\fR"
.SH "void TQGroupBox::setChecked ( bool b )\fC [slot]\fR"
Sets whether the group box's checkbox is checked to \fIb\fR. See the "checked" property for details.
.SH "void QGroupBox::setColumnLayout ( int strips, Orientation direction )\fC [virtual]\fR"
.SH "void TQGroupBox::setColumnLayout ( int strips, Orientation direction )\fC [virtual]\fR"
Changes the layout of the group box. This function is only useful in combination with the default constructor that does not take any layout information. This function will put all existing children in the new layout. It is not good TQt programming style to call this function after children have been inserted. Sets the number of columns or rows to be \fIstrips\fR, depending on \fIdirection\fR.
.PP
See also orientation and columns.
.PP
Example: chart/optionsform.cpp.
.SH "void QGroupBox::setColumns ( int )"
Sets the number of columns or rows (depending on QGroupBox::orientation) in the group box. See the "columns" property for details.
.SH "void QGroupBox::setFlat ( bool b )"
.SH "void TQGroupBox::setColumns ( int )"
Sets the number of columns or rows (depending on TQGroupBox::orientation) in the group box. See the "columns" property for details.
.SH "void TQGroupBox::setFlat ( bool b )"
Sets whether the group box is painted flat or has a frame to \fIb\fR. See the "flat" property for details.
.SH "void QGroupBox::setInsideMargin ( int m )"
.SH "void TQGroupBox::setInsideMargin ( int m )"
Sets the the width of the inside margin to \fIm\fR pixels.
.PP
See also insideMargin().
.SH "void QGroupBox::setInsideSpacing ( int s )"
.SH "void TQGroupBox::setInsideSpacing ( int s )"
Sets the width of the empty space between each of the items in the group to \fIs\fR pixels.
Sets the group box title text. See the "title" property for details.
.SH "TQString QGroupBox::title () const"
.SH "TQString TQGroupBox::title () const"
Returns the group box title text. See the "title" property for details.
.SH "void QGroupBox::toggled ( bool on )\fC [signal]\fR"
.SH "void TQGroupBox::toggled ( bool on )\fC [signal]\fR"
If the group box has a check box (see isCheckable()) this signal is emitted when the check box is toggled. \fIon\fR is TRUE if the check box is checked; otherwise it is FALSE.
.SS "Property Documentation"
.SH "Alignment alignment"
@ -266,7 +266,7 @@ If the group box has a check box (see isCheckable()), and the check box is check
.PP
Set this property's value with setChecked() and get this property's value with isChecked().
.SH "int columns"
This property holds the number of columns or rows (depending on QGroupBox::orientation) in the group box.
This property holds the number of columns or rows (depending on TQGroupBox::orientation) in the group box.
.PP
Usually it is not a good idea to set this property because it is slow (it does a complete layout). It is best to set the number of columns directly in the constructor.
.PP
@ -304,7 +304,7 @@ There is no default title text.
Set this property's value with setTitle() and get this property's value with title().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqgroupbox.html
.BR http://doc.trolltech.com/tqgroupbox.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
The QHBox widget provides horizontal geometry management for its child widgets.
The TQHBox widget provides horizontal geometry management for its child widgets.
.PP
All the horizontal box's child widgets will be placed alongside each other and sized according to their sizeHint()s.
.PP
@ -46,28 +46,28 @@ Use setMargin() to add space around the edges, and use setSpacing() to add space
.PP
</center>
.PP
See also QHBoxLayout, QVBox, TQGrid, Widget Appearance and Style, Layout Management, and Organizers.
See also TQHBoxLayout, TQVBox, TQGrid, Widget Appearance and Style, Layout Management, and Organizers.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QHBox::QHBox ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
.SH "TQHBox::TQHBox ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )"
Constructs an hbox widget with parent \fIparent\fR, called \fIname\fR. The parent, name and widget flags, \fIf\fR, are passed to the TQFrame constructor.
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,37 +7,37 @@
.ad l
.nh
.SH NAME
QHBoxLayout \- Lines up widgets horizontally
TQHBoxLayout \- Lines up widgets horizontally
.SH SYNOPSIS
\fC#include <ntqlayout.h>\fR
\fC#include <tqlayout.h>\fR
.PP
Inherits QBoxLayout.
Inherits TQBoxLayout.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQHBoxLayout\fR ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
.BI "\fBTQHBoxLayout\fR ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
.br
.ti -1c
.BI "\fBQHBoxLayout\fR ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )"
.BI "\fBTQHBoxLayout\fR ( TQLayout * parentLayout, int spacing = -1, const char * name = 0 )"
.br
.ti -1c
.BI "\fBQHBoxLayout\fR ( int spacing = -1, const char * name = 0 )"
.BI "\fBTQHBoxLayout\fR ( int spacing = -1, const char * name = 0 )"
.br
.ti -1c
.BI "\fB~QHBoxLayout\fR ()"
.BI "\fB~TQHBoxLayout\fR ()"
.br
.in -1c
.SH DESCRIPTION
The QHBoxLayout class lines up widgets horizontally.
The TQHBoxLayout class lines up widgets horizontally.
.PP
This class is used to construct horizontal box layout objects. See QBoxLayout for more details.
This class is used to construct horizontal box layout objects. See TQBoxLayout for more details.
.PP
The simplest use of the class is like this:
.PP
.nf
.br
QBoxLayout * l = new QHBoxLayout( widget );
TQBoxLayout * l = new TQHBoxLayout( widget );
.br
l->setAutoAdd( TRUE );
.br
@ -53,7 +53,7 @@ or like this:
.PP
.nf
.br
QBoxLayout * l = new QHBoxLayout( widget );
TQBoxLayout * l = new TQHBoxLayout( widget );
.br
l->addWidget( existingChildOfWidget );
.br
@ -67,27 +67,27 @@ or like this:
.PP
</center>
.PP
See also QVBoxLayout, TQGridLayout, the Layout overview, Widget Appearance and Style, and Layout Management.
See also TQVBoxLayout, TQGridLayout, the Layout overview, Widget Appearance and Style, and Layout Management.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QHBoxLayout::QHBoxLayout ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
.SH "TQHBoxLayout::TQHBoxLayout ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
Constructs a new top-level horizontal box called \fIname\fR, with parent \fIparent\fR.
.PP
The \fImargin\fR is the number of pixels between the edge of the widget and its managed children. The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1 the value of \fImargin\fR is used for \fIspacing\fR.
.SH "QHBoxLayout::QHBoxLayout ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )"
.SH "TQHBoxLayout::TQHBoxLayout ( TQLayout * parentLayout, int spacing = -1, const char * name = 0 )"
Constructs a new horizontal box called name \fIname\fR and adds it to \fIparentLayout\fR.
.PP
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this QHBoxLayout will inherit its parent's spacing().
.SH "QHBoxLayout::QHBoxLayout ( int spacing = -1, const char * name = 0 )"
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this TQHBoxLayout will inherit its parent's spacing().
.SH "TQHBoxLayout::TQHBoxLayout ( int spacing = -1, const char * name = 0 )"
Constructs a new horizontal box called name \fIname\fR. You must add it to another layout.
.PP
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this QHBoxLayout will inherit its parent's spacing().
.SH "QHBoxLayout::~QHBoxLayout ()"
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this TQHBoxLayout will inherit its parent's spacing().
.SH "TQHBoxLayout::~TQHBoxLayout ()"
Destroys this box layout.
.PP
The layout's widgets aren't destroyed.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qhboxlayout.html
.BR http://doc.trolltech.com/tqhboxlayout.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
The QHButtonGroup widget organizes TQButton widgets in a group with one horizontal row.
The TQHButtonGroup widget organizes TQButton widgets in a group with one horizontal row.
.PP
QHButtonGroup is a convenience class that offers a thin layer on top of TQButtonGroup. From a layout point of view it is effectively a QHBox that offers a frame with a title and is specifically designed for buttons. From a functionality point of view it is a TQButtonGroup.
TQHButtonGroup is a convenience class that offers a thin layer on top of TQButtonGroup. From a layout point of view it is effectively a TQHBox that offers a frame with a title and is specifically designed for buttons. From a functionality point of view it is a TQButtonGroup.
.PP
<center>
.ce 1
@ -36,21 +36,21 @@ QHButtonGroup is a convenience class that offers a thin layer on top of TQButton
.PP
</center>
.PP
See also QVButtonGroup, Widget Appearance and Style, Layout Management, and Organizers.
See also TQVButtonGroup, Widget Appearance and Style, Layout Management, and Organizers.
@ -243,7 +243,7 @@ Sets the alignment of the label's contents. See the "alignment" property for det
.PP
Enables auto-resizing if \fIenable\fR is TRUE, or disables it if \fIenable\fR is FALSE.
.PP
When auto-resizing is enabled the label will resize itself to fit the contents whenever the contents change. The top-left corner is not moved. This is useful for TQLabel widgets that are not managed by a QLayout (e.g., top-level widgets).
When auto-resizing is enabled the label will resize itself to fit the contents whenever the contents change. The top-left corner is not moved. This is useful for TQLabel widgets that are not managed by a TQLayout (e.g., top-level widgets).
@ -126,7 +126,7 @@ Inherited by TQGridLayout and QBoxLayout.
.SS "Protected Members"
.in +1c
.ti -1c
.BI "void \fBaddChildLayout\fR ( QLayout * l )"
.BI "void \fBaddChildLayout\fR ( TQLayout * l )"
.br
.ti -1c
.BI "void \fBdeleteAllItems\fR ()"
@ -139,60 +139,60 @@ Inherited by TQGridLayout and QBoxLayout.
.br
.in -1c
.SH DESCRIPTION
The QLayout class is the base class of geometry managers.
The TQLayout class is the base class of geometry managers.
.PP
This is an abstract base class inherited by the concrete classes, QBoxLayout and TQGridLayout.
This is an abstract base class inherited by the concrete classes, TQBoxLayout and TQGridLayout.
.PP
For users of QLayout subclasses or of TQMainWindow there is seldom any need to use the basic functions provided by QLayout, such as setResizeMode() or setMenuBar(). See the layout overview page for more information.
For users of TQLayout subclasses or of TQMainWindow there is seldom any need to use the basic functions provided by TQLayout, such as setResizeMode() or setMenuBar(). See the layout overview page for more information.
.PP
To make your own layout manager, subclass QGLayoutIterator and implement the functions addItem(), sizeHint(), setGeometry(), and iterator(). You should also implement minimumSize() to ensure your layout isn't resized to zero size if there is too little space. To support children whose heights depend on their widths, implement hasHeightForWidth() and heightForWidth(). See the custom layout page for an in-depth description.
To make your own layout manager, subclass TQGLayoutIterator and implement the functions addItem(), sizeHint(), setGeometry(), and iterator(). You should also implement minimumSize() to ensure your layout isn't resized to zero size if there is too little space. To support children whose heights depend on their widths, implement hasHeightForWidth() and heightForWidth(). See the custom layout page for an in-depth description.
.PP
Geometry management stops when the layout manager is deleted.
.PP
See also Widget Appearance and Style and Layout Management.
.SS "Member Type Documentation"
.SH "QLayout::ResizeMode"
.SH "TQLayout::ResizeMode"
The possible values are:
.TP
\fCQLayout::Auto\fR - If the main widget is a top-level widget with no height-for-width (hasHeightForWidth()), this is the same as \fCMinimium\fR; otherwise, this is the same as FreeResize.
\fCTQLayout::Auto\fR - If the main widget is a top-level widget with no height-for-width (hasHeightForWidth()), this is the same as \fCMinimium\fR; otherwise, this is the same as FreeResize.
.TP
\fCQLayout::Fixed\fR - The main widget's size is set to sizeHint(); it cannot be resized at all.
\fCTQLayout::Fixed\fR - The main widget's size is set to sizeHint(); it cannot be resized at all.
.TP
\fCQLayout::Minimum\fR - The main widget's minimum size is set to minimumSize(); it cannot be smaller.
\fCTQLayout::Minimum\fR - The main widget's minimum size is set to minimumSize(); it cannot be smaller.
.TP
\fCQLayout::FreeResize\fR - The widget is not constrained.
\fCTQLayout::FreeResize\fR - The widget is not constrained.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QLayout::QLayout ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
Constructs a new top-level QLayout called \fIname\fR, with main widget \fIparent\fR. \fIparent\fR may not be 0.
.SH "TQLayout::TQLayout ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
Constructs a new top-level TQLayout called \fIname\fR, with main widget \fIparent\fR. \fIparent\fR may not be 0.
.PP
The \fImargin\fR is the number of pixels between the edge of the widget and the managed children. The \fIspacing\fR sets the value of spacing(), which gives the spacing between the managed widgets. If \fIspacing\fR is -1 (the default), spacing is set to the value of \fImargin\fR.
.PP
There can be only one top-level layout for a widget. It is returned by TQWidget::layout()
.SH "QLayout::QLayout ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )"
Constructs a new child QLayout called \fIname\fR, and places it inside \fIparentLayout\fR by using the default placement defined by addItem().
.SH "TQLayout::TQLayout ( TQLayout * parentLayout, int spacing = -1, const char * name = 0 )"
Constructs a new child TQLayout called \fIname\fR, and places it inside \fIparentLayout\fR by using the default placement defined by addItem().
.PP
If \fIspacing\fR is -1, this QLayout inherits \fIparentLayout\fR's spacing(), otherwise the value of \fIspacing\fR is used.
.SH "QLayout::QLayout ( int spacing = -1, const char * name = 0 )"
Constructs a new child QLayout called \fIname\fR. If \fIspacing\fR is -1, this QLayout inherits its parent's spacing(); otherwise the value of \fIspacing\fR is used.
If \fIspacing\fR is -1, this TQLayout inherits \fIparentLayout\fR's spacing(), otherwise the value of \fIspacing\fR is used.
.SH "TQLayout::TQLayout ( int spacing = -1, const char * name = 0 )"
Constructs a new child TQLayout called \fIname\fR. If \fIspacing\fR is -1, this TQLayout inherits its parent's spacing(); otherwise the value of \fIspacing\fR is used.
.PP
This layout has to be inserted into another layout before geometry management will work.
.SH "bool QLayout::activate ()"
.SH "bool TQLayout::activate ()"
Redoes the layout for mainWidget(). You should generally not need to call this because it is automatically called at the most appropriate times.
.PP
However, if you set up a QLayout for a visible widget without resizing that widget, you will need to call this function in order to lay it out.
However, if you set up a TQLayout for a visible widget without resizing that widget, you will need to call this function in order to lay it out.
.PP
See also TQWidget::updateGeometry().
.PP
Examples:
.)l layout/layout.cpp, popup/popup.cpp, scrollview/scrollview.cpp, and sql/overview/form1/main.cpp.
.SH "void QLayout::add ( TQWidget * w )"
.SH "void TQLayout::add ( TQWidget * w )"
Adds widget \fIw\fR to this layout in a manner specific to the layout. This function uses addItem().
.PP
Examples:
.)l customlayout/border.cpp and customlayout/main.cpp.
.SH "void QLayout::addChildLayout ( QLayout * l )\fC [protected]\fR"
.SH "void TQLayout::addChildLayout ( TQLayout * l )\fC [protected]\fR"
This function is called from addLayout() functions in subclasses to add layout \fIl\fR as a sub-layout.
Returns the rectangle that should be covered when the geometry of this layout is set to \fIr\fR, provided that this layout supports setAlignment().
.PP
The result is derived from sizeHint() and expanding(). It is never larger than \fIr\fR.
.SH "bool QLayout::autoAdd () const"
.SH "bool TQLayout::autoAdd () const"
Returns TRUE if this layout automatically grabs all new mainWidget()'s new children and adds them as defined by addItem(); otherwise returns FALSE. This has effect only for top-level layouts, i.e. layouts that are direct children of their mainWidget().
.PP
autoAdd() is disabled by default.
@ -213,9 +213,9 @@ autoAdd() is disabled by default.
Note that a top-level layout is not necessarily associated with the top-level widget.
Returns whether this layout can make use of more space than sizeHint(). A value of Vertical or Horizontal means that it wants to grow in only one dimension, whereas \fCBothDirections\fR means that it wants to grow in both dimensions.
.PP
The default implementation returns \fCBothDirections\fR.
@ -223,64 +223,64 @@ The default implementation returns \fCBothDirections\fR.
Examples:
.)l customlayout/border.cpp and customlayout/flow.cpp.
Returns the maximum size of this layout. This is the largest size that the layout can have while still respecting the specifications. Does not include what's needed by margin() or menuBar().
.PP
The default implementation allows unlimited resizing.
.PP
Reimplemented from QLayoutItem.
Reimplemented from TQLayoutItem.
.PP
Reimplemented in TQGridLayout and QBoxLayout.
.SH "TQMenuBar * QLayout::menuBar () const"
Reimplemented in TQGridLayout and TQBoxLayout.
.SH "TQMenuBar * TQLayout::menuBar () const"
Returns the menu bar set for this layout, or 0 if no menu bar is set.
Returns the minimum size of this layout. This is the smallest size that the layout can have while still respecting the specifications. Does not include what's needed by margin() or menuBar().
.PP
The default implementation allows unlimited resizing.
@ -288,22 +288,22 @@ The default implementation allows unlimited resizing.
Examples:
.)l customlayout/border.cpp, customlayout/card.cpp, and customlayout/flow.cpp.
.PP
Reimplemented from QLayoutItem.
Reimplemented from TQLayoutItem.
.PP
Reimplemented in TQGridLayout and QBoxLayout.
.SH "void QLayout::remove ( TQWidget * widget )"
Reimplemented in TQGridLayout and TQBoxLayout.
.SH "void TQLayout::remove ( TQWidget * widget )"
Removes the widget \fIwidget\fR from the layout. After this call, it is the caller's responsibility to give the widget a reasonable geometry or to put the widget back into a layout.
.PP
See also removeItem(), TQWidget::geometry, and add().
Removes the layout item \fIitem\fR from the layout. It is the caller's responsibility to delete the item.
.PP
Notice that \fIitem\fR can be a layout (since QLayout inherits QLayoutItem).
Notice that \fIitem\fR can be a layout (since TQLayout inherits TQLayoutItem).
.PP
See also remove() and addItem().
.SH "ResizeMode QLayout::resizeMode () const"
.SH "ResizeMode TQLayout::resizeMode () const"
Returns the resize mode of the layout. See the "resizeMode" property for details.
.SH "void QLayout::setAutoAdd ( bool b )\fC [virtual]\fR"
.SH "void TQLayout::setAutoAdd ( bool b )\fC [virtual]\fR"
If \fIb\fR is TRUE, auto-add is enabled; otherwise auto-add is disabled.
.PP
\fBWarning:\fR If auto-add is enabled, you cannot set stretch factors on the child widgets until the widgets are actually inserted in the layout (after control returned to the event loop). We therefore recommend that you avoid the auto-add feature in new programs.
@ -312,7 +312,7 @@ See also autoAdd().
.PP
Examples:
.)l hierarchy/objects.cpp and i18n/main.cpp.
.SH "void QLayout::setEnabled ( bool enable )"
.SH "void TQLayout::setEnabled ( bool enable )"
Enables this layout if \fIenable\fR is TRUE, otherwise disables it.
.PP
An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist.
@ -320,7 +320,7 @@ An enabled layout adjusts dynamically to changes; a disabled layout acts as if i
This function is reimplemented in subclasses to perform layout.
.PP
The default implementation maintains the geometry() information given by rect \fIr\fR. Reimplementors must call this function.
@ -328,39 +328,39 @@ The default implementation maintains the geometry() information given by rect \f
Examples:
.)l customlayout/border.cpp, customlayout/card.cpp, and customlayout/flow.cpp.
.PP
Reimplemented from QLayoutItem.
Reimplemented from TQLayoutItem.
.PP
Reimplemented in TQGridLayout and QBoxLayout.
.SH "void QLayout::setMargin ( int )\fC [virtual]\fR"
Reimplemented in TQGridLayout and TQBoxLayout.
.SH "void TQLayout::setMargin ( int )\fC [virtual]\fR"
Sets the width of the outside border of the layout. See the "margin" property for details.
.SH "void QLayout::setMenuBar ( TQMenuBar * w )\fC [virtual]\fR"
.SH "void TQLayout::setMenuBar ( TQMenuBar * w )\fC [virtual]\fR"
Makes the geometry manager take account of the menu bar \fIw\fR. All child widgets are placed below the bottom edge of the menu bar.
.PP
A menu bar does its own geometry management: never do addWidget() on a TQMenuBar.
.PP
Examples:
.)l layout/layout.cpp and scrollview/scrollview.cpp.
.SH "void QLayout::setResizeMode ( ResizeMode )"
.SH "void TQLayout::setResizeMode ( ResizeMode )"
Sets the resize mode of the layout. See the "resizeMode" property for details.
.SH "void QLayout::setSpacing ( int )\fC [virtual]\fR"
.SH "void TQLayout::setSpacing ( int )\fC [virtual]\fR"
Sets the spacing between widgets inside the layout. See the "spacing" property for details.
.SH "void QLayout::setSupportsMargin ( bool b )\fC [protected]\fR"
Sets the value returned by supportsMargin(). If \fIb\fR is TRUE, margin() handling is implemented by the subclass. If \fIb\fR is FALSE (the default), QLayout will add margin() around top-level layouts.
.SH "void TQLayout::setSupportsMargin ( bool b )\fC [protected]\fR"
Sets the value returned by supportsMargin(). If \fIb\fR is TRUE, margin() handling is implemented by the subclass. If \fIb\fR is FALSE (the default), TQLayout will add margin() around top-level layouts.
.PP
If \fIb\fR is TRUE, margin handling needs to be implemented in setGeometry(), maximumSize(), minimumSize(), sizeHint() and heightForWidth().
.PP
See also supportsMargin().
.SH "int QLayout::spacing () const"
.SH "int TQLayout::spacing () const"
Returns the spacing between widgets inside the layout. See the "spacing" property for details.
.SH "bool QLayout::supportsMargin () const"
Returns TRUE if this layout supports QLayout::margin on non-top-level layouts; otherwise returns FALSE.
.SH "bool TQLayout::supportsMargin () const"
Returns TRUE if this layout supports TQLayout::margin on non-top-level layouts; otherwise returns FALSE.
.PP
See also margin.
.SS "Property Documentation"
.SH "int margin"
This property holds the width of the outside border of the layout.
.PP
For some layout classes this property has an effect only on top-level layouts; QBoxLayout and TQGridLayout support margins for child layouts. The default value is 0.
For some layout classes this property has an effect only on top-level layouts; TQBoxLayout and TQGridLayout support margins for child layouts. The default value is 0.
.PP
See also spacing.
.PP
@ -370,7 +370,7 @@ This property holds the resize mode of the layout.
.PP
The default mode is Auto.
.PP
See also QLayout::ResizeMode.
See also TQLayout::ResizeMode.
.PP
Set this property's value with setResizeMode() and get this property's value with resizeMode().
.SH "int spacing"
@ -383,7 +383,7 @@ See also margin.
Set this property's value with setSpacing() and get this property's value with spacing().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqlayout.html
.BR http://doc.trolltech.com/tqlayout.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,19 +7,19 @@
.ad l
.nh
.SH NAME
QLayoutItem \- Abstract item that a QLayout manipulates
TQLayoutItem \- Abstract item that a TQLayout manipulates
.SH SYNOPSIS
\fC#include <ntqlayout.h>\fR
\fC#include <tqlayout.h>\fR
.PP
Inherited by QLayout, QSpacerItem, and TQWidgetItem.
Inherited by TQLayout, TQSpacerItem, and TQWidgetItem.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQLayoutItem\fR ( int alignment = 0 )"
.BI "\fBTQLayoutItem\fR ( int alignment = 0 )"
.br
.ti -1c
.BI "virtual \fB~QLayoutItem\fR ()"
.BI "virtual \fB~TQLayoutItem\fR ()"
.br
.ti -1c
.BI "virtual TQSize \fBsizeHint\fR () const = 0"
@ -55,13 +55,13 @@ Inherited by QLayout, QSpacerItem, and TQWidgetItem.
.BI "virtual TQWidget * \fBwidget\fR ()"
.br
.ti -1c
.BI "virtual QLayoutIterator \fBiterator\fR ()"
.BI "virtual TQLayoutIterator \fBiterator\fR ()"
.br
.ti -1c
.BI "virtual QLayout * \fBlayout\fR ()"
.BI "virtual TQLayout * \fBlayout\fR ()"
.br
.ti -1c
.BI "virtual QSpacerItem * \fBspacerItem\fR ()"
.BI "virtual TQSpacerItem * \fBspacerItem\fR ()"
.br
.ti -1c
.BI "int \fBalignment\fR () const"
@ -71,7 +71,7 @@ Inherited by QLayout, QSpacerItem, and TQWidgetItem.
.br
.in -1c
.SH DESCRIPTION
The QLayoutItem class provides an abstract item that a QLayout manipulates.
The TQLayoutItem class provides an abstract item that a TQLayout manipulates.
.PP
This is used by custom layouts.
.PP
@ -81,23 +81,23 @@ The layout's geometry can be set and retrieved with setGeometry() and geometry()
.PP
isEmpty() returns whether the layout is empty. iterator() returns an iterator for the layout's children. If the concrete item is a TQWidget, it can be retrieved using widget(). Similarly for layout() and spacerItem().
.PP
See also QLayout, Widget Appearance and Style, and Layout Management.
See also TQLayout, Widget Appearance and Style, and Layout Management.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QLayoutItem::QLayoutItem ( int alignment = 0 )"
.SH "TQLayoutItem::TQLayoutItem ( int alignment = 0 )"
Constructs a layout item with an \fIalignment\fR that is a bitwise OR of the TQt::AlignmentFlags. Not all subclasses support alignment.
Returns TRUE if this layout's preferred height depends on its width; otherwise returns FALSE. The default implementation returns FALSE.
.PP
Reimplement this function in layout managers that support height for width.
@ -107,8 +107,8 @@ See also heightForWidth() and TQWidget::heightForWidth().
Examples:
.)l customlayout/border.cpp and customlayout/flow.cpp.
.PP
Reimplemented in TQGridLayout and QBoxLayout.
.SH "int QLayoutItem::heightForWidth ( int w ) const\fC [virtual]\fR"
Reimplemented in TQGridLayout and TQBoxLayout.
.SH "int TQLayoutItem::heightForWidth ( int w ) const\fC [virtual]\fR"
Returns the preferred height for this layout item, given the width \fIw\fR.
.PP
The default implementation returns -1, indicating that the preferred height is independent of the width of the item. Using the function hasHeightForWidth() will typically be much faster than calling this function and testing for -1.
@ -147,61 +147,61 @@ See also hasHeightForWidth().
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,45 +7,45 @@
.ad l
.nh
.SH NAME
QLayoutIterator \- Iterators over QLayoutItem
TQLayoutIterator \- Iterators over TQLayoutItem
.SH SYNOPSIS
\fC#include <ntqlayout.h>\fR
\fC#include <tqlayout.h>\fR
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQLayoutIterator\fR ( QGLayoutIterator * gi )"
.BI "\fBTQLayoutIterator\fR ( TQGLayoutIterator * gi )"
.br
.ti -1c
.BI "\fBQLayoutIterator\fR ( const QLayoutIterator & i )"
.BI "\fBTQLayoutIterator\fR ( const TQLayoutIterator & i )"
.br
.ti -1c
.BI "\fB~QLayoutIterator\fR ()"
.BI "\fB~TQLayoutIterator\fR ()"
.br
.ti -1c
.BI "QLayoutIterator & \fBoperator=\fR ( const QLayoutIterator & i )"
.BI "TQLayoutIterator & \fBoperator=\fR ( const TQLayoutIterator & i )"
.br
.ti -1c
.BI "QLayoutItem * \fBoperator++\fR ()"
.BI "TQLayoutItem * \fBoperator++\fR ()"
.br
.ti -1c
.BI "QLayoutItem * \fBcurrent\fR ()"
.BI "TQLayoutItem * \fBcurrent\fR ()"
.br
.ti -1c
.BI "QLayoutItem * \fBtakeCurrent\fR ()"
.BI "TQLayoutItem * \fBtakeCurrent\fR ()"
.br
.ti -1c
.BI "void \fBdeleteCurrent\fR ()"
.br
.in -1c
.SH DESCRIPTION
The QLayoutIterator class provides iterators over QLayoutItem.
The TQLayoutIterator class provides iterators over TQLayoutItem.
.PP
Use QLayoutItem::iterator() to create an iterator over a layout.
Use TQLayoutItem::iterator() to create an iterator over a layout.
.PP
QLayoutIterator uses \fIexplicit\fR sharing with a reference count. If an iterator is copied and one of the copies is modified, both iterators will be modified.
TQLayoutIterator uses \fIexplicit\fR sharing with a reference count. If an iterator is copied and one of the copies is modified, both iterators will be modified.
.PP
A QLayoutIterator is not protected against changes in its layout. If the layout is modified or deleted the iterator will become invalid. It is not possible to test for validity. It is safe to delete an invalid layout; any other access may lead to an illegal memory reference and the abnormal termination of the program.
A TQLayoutIterator is not protected against changes in its layout. If the layout is modified or deleted the iterator will become invalid. It is not possible to test for validity. It is safe to delete an invalid layout; any other access may lead to an illegal memory reference and the abnormal termination of the program.
.PP
Calling takeCurrent() or deleteCurrent() leaves the iterator in a valid state, but may invalidate any other iterators that access the same layout.
.PP
@ -53,13 +53,13 @@ The following code will draw a rectangle for each layout item in the layout stru
@ -87,27 +87,27 @@ The following code will draw a rectangle for each layout item in the layout stru
.br
.fi
.PP
All the functionality of QLayoutIterator is implemented by subclasses of QGLayoutIterator. QLayoutIterator itself is not designed to be subclassed.
All the functionality of TQLayoutIterator is implemented by subclasses of TQGLayoutIterator. TQLayoutIterator itself is not designed to be subclassed.
.PP
See also Widget Appearance and Style and Layout Management.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QLayoutIterator::QLayoutIterator ( QGLayoutIterator * gi )"
.SH "TQLayoutIterator::TQLayoutIterator ( TQGLayoutIterator * gi )"
Constructs an iterator based on \fIgi\fR. The constructed iterator takes ownership of \fIgi\fR and will delete it.
.PP
This constructor is provided for layout implementors. Application programmers should use QLayoutItem::iterator() to create an iterator over a layout.
.SH "QLayoutIterator::QLayoutIterator ( const QLayoutIterator & i )"
This constructor is provided for layout implementors. Application programmers should use TQLayoutItem::iterator() to create an iterator over a layout.
.SH "TQLayoutIterator::TQLayoutIterator ( const TQLayoutIterator & i )"
Creates a shallow copy of \fIi\fR, i.e. if the copy is modified, then the original will also be modified.
.SH "QLayoutIterator::~QLayoutIterator ()"
.SH "TQLayoutIterator::~TQLayoutIterator ()"
Destroys the iterator.
.SH "QLayoutItem * QLayoutIterator::current ()"
.SH "TQLayoutItem * TQLayoutIterator::current ()"
Returns the current item, or 0 if there is no current item.
.SH "void QLayoutIterator::deleteCurrent ()"
.SH "void TQLayoutIterator::deleteCurrent ()"
Removes and deletes the current child item from the layout and moves the iterator to the next item. This iterator will still be valid, but any other iterator over the same layout may become invalid.
@ -51,7 +51,7 @@ This class is implemented as a wrapper to the Apple Appearance Manager. This all
There are additional issues that should be taken into consideration to make an application compatible with the Aqua Style Guidelines. Some of these issues are outlined below.
.IP
.TP
Layout - The restrictions on window layout are such that some aspects of layout that are style-dependent cannot be achieved using QLayout. Changes are being considered (and feedback would be appreciated) to make layouts TQStyle-able. Some of the restrictions involve horizontal and vertical widget alignment and widget size (covered below).
Layout - The restrictions on window layout are such that some aspects of layout that are style-dependent cannot be achieved using TQLayout. Changes are being considered (and feedback would be appreciated) to make layouts TQStyle-able. Some of the restrictions involve horizontal and vertical widget alignment and widget size (covered below).
.IP
.TP
Widget size - Aqua allows widgets to have specific fixed sizes. TQt does not fully implement this behaviour so as to maintain multiplatform compatibility. As a result some widgets sizes may be inappropriate (and subsequently not rendered correctly by the Appearance Manager).The TQWidget::sizeHint() will return the appropriate size for many managed widgets (widgets enumerated in TQStyle::ContentsType).
@ -327,7 +327,7 @@ The first, simplest usage of TQScrollView (depicted above), is appropriate for s
.br
TQScrollView* sv = new TQScrollView(...);
.br
QVBox* big_box = new QVBox(sv->viewport());
TQVBox* big_box = new TQVBox(sv->viewport());
.br
sv->addChild(big_box);
.br
@ -346,7 +346,7 @@ You can go on to add arbitrary child widgets to the single child in the scrollvi
.br
.fi
.PP
Here the TQScrollView has four children: the viewport(), the verticalScrollBar(), the horizontalScrollBar() and a small cornerWidget(). The viewport() has one child: the big QVBox. The QVBox has the three TQLabel objects as child widgets. When the view is scrolled, the QVBox is moved; its children move with it as child widgets normally do.
Here the TQScrollView has four children: the viewport(), the verticalScrollBar(), the horizontalScrollBar() and a small cornerWidget(). The viewport() has one child: the big TQVBox. The TQVBox has the three TQLabel objects as child widgets. When the view is scrolled, the TQVBox is moved; its children move with it as child widgets normally do.
@ -150,7 +150,7 @@ Note, that if you have a table item that is not currently in a table then anythi
.PP
Reimplement createEditor() and setContentFromEditor() if you want to use your own widget instead of a TQLineEdit for editing cell contents. Reimplement paint() if you want to display custom content.
.PP
It is important to ensure that your custom widget can accept the keyboard focus, so that the user can use the tab key to navigate the table as normal. Therefore, if the widget returned by createEditor() does not itself accept the keyboard focus, it is necessary to nominate a child widget to do so on its behalf. For example, a QHBox with two child TQLineEdit widgets may use one of them to accept the keyboard focus:
It is important to ensure that your custom widget can accept the keyboard focus, so that the user can use the tab key to navigate the table as normal. Therefore, if the widget returned by createEditor() does not itself accept the keyboard focus, it is necessary to nominate a child widget to do so on its behalf. For example, a TQHBox with two child TQLineEdit widgets may use one of them to accept the keyboard focus:
.PP
.nf
.br
@ -158,7 +158,7 @@ It is important to ensure that your custom widget can accept the keyboard focus,
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,37 +7,37 @@
.ad l
.nh
.SH NAME
QVBoxLayout \- Lines up widgets vertically
TQVBoxLayout \- Lines up widgets vertically
.SH SYNOPSIS
\fC#include <ntqlayout.h>\fR
\fC#include <tqlayout.h>\fR
.PP
Inherits QBoxLayout.
Inherits TQBoxLayout.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQVBoxLayout\fR ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
.BI "\fBTQVBoxLayout\fR ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
.br
.ti -1c
.BI "\fBQVBoxLayout\fR ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )"
.BI "\fBTQVBoxLayout\fR ( TQLayout * parentLayout, int spacing = -1, const char * name = 0 )"
.br
.ti -1c
.BI "\fBQVBoxLayout\fR ( int spacing = -1, const char * name = 0 )"
.BI "\fBTQVBoxLayout\fR ( int spacing = -1, const char * name = 0 )"
.br
.ti -1c
.BI "\fB~QVBoxLayout\fR ()"
.BI "\fB~TQVBoxLayout\fR ()"
.br
.in -1c
.SH DESCRIPTION
The QVBoxLayout class lines up widgets vertically.
The TQVBoxLayout class lines up widgets vertically.
.PP
This class is used to construct vertical box layout objects. See QBoxLayout for more details.
This class is used to construct vertical box layout objects. See TQBoxLayout for more details.
.PP
The simplest use of the class is like this:
.PP
.nf
.br
QBoxLayout * l = new QVBoxLayout( widget );
TQBoxLayout * l = new TQVBoxLayout( widget );
.br
l->addWidget( aWidget );
.br
@ -51,27 +51,27 @@ The simplest use of the class is like this:
.PP
</center>
.PP
See also QHBoxLayout, TQGridLayout, the Layout overview, Widget Appearance and Style, and Layout Management.
See also TQHBoxLayout, TQGridLayout, the Layout overview, Widget Appearance and Style, and Layout Management.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QVBoxLayout::QVBoxLayout ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
.SH "TQVBoxLayout::TQVBoxLayout ( TQWidget * parent, int margin = 0, int spacing = -1, const char * name = 0 )"
Constructs a new top-level vertical box called \fIname\fR, with parent \fIparent\fR.
.PP
The \fImargin\fR is the number of pixels between the edge of the widget and its managed children. The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1 the value of \fImargin\fR is used for \fIspacing\fR.
.SH "QVBoxLayout::QVBoxLayout ( QLayout * parentLayout, int spacing = -1, const char * name = 0 )"
.SH "TQVBoxLayout::TQVBoxLayout ( TQLayout * parentLayout, int spacing = -1, const char * name = 0 )"
Constructs a new vertical box called name \fIname\fR and adds it to \fIparentLayout\fR.
.PP
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this QVBoxLayout will inherit its parent's spacing().
.SH "QVBoxLayout::QVBoxLayout ( int spacing = -1, const char * name = 0 )"
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this TQVBoxLayout will inherit its parent's spacing().
.SH "TQVBoxLayout::TQVBoxLayout ( int spacing = -1, const char * name = 0 )"
Constructs a new vertical box called name \fIname\fR. You must add it to another layout.
.PP
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this QVBoxLayout will inherit its parent's spacing().
.SH "QVBoxLayout::~QVBoxLayout ()"
The \fIspacing\fR is the default number of pixels between neighboring children. If \fIspacing\fR is -1, this TQVBoxLayout will inherit its parent's spacing().
.SH "TQVBoxLayout::~TQVBoxLayout ()"
Destroys this box layout.
.PP
The layout's widgets aren't destroyed.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qvboxlayout.html
.BR http://doc.trolltech.com/tqvboxlayout.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
The QVButtonGroup widget organizes TQButton widgets in a vertical column.
The TQVButtonGroup widget organizes TQButton widgets in a vertical column.
.PP
QVButtonGroup is a convenience class that offers a thin layer on top of TQButtonGroup. Think of it as a QVBox that offers a frame with a title and is specifically designed for buttons.
TQVButtonGroup is a convenience class that offers a thin layer on top of TQButtonGroup. Think of it as a TQVBox that offers a frame with a title and is specifically designed for buttons.
.PP
<center>
.ce 1
@ -36,21 +36,21 @@ QVButtonGroup is a convenience class that offers a thin layer on top of TQButton
.PP
</center>
.PP
See also QHButtonGroup, Widget Appearance and Style, Layout Management, and Organizers.
See also TQHButtonGroup, Widget Appearance and Style, Layout Management, and Organizers.
@ -1101,7 +1101,7 @@ It is almost always useful to reimplement sizeHint() and to set the correct size
If your widget is a top-level window, setCaption() and setIcon() set the title bar and icon respectively.
.IP
.PP
See also TQEvent, TQPainter, TQGridLayout, QBoxLayout, and Abstract Widget Classes.
See also TQEvent, TQPainter, TQGridLayout, TQBoxLayout, and Abstract Widget Classes.
.SS "Member Type Documentation"
.SH "TQWidget::BackgroundOrigin"
This enum defines the origin used to draw a widget's background pixmap.
@ -1646,7 +1646,7 @@ Returns the widget that is currently grabbing the keyboard input.
If no widget in this application is currently grabbing the keyboard, 0 is returned.
.PP
See also grabMouse() and mouseGrabber().
.SH "QLayout * TQWidget::layout () const"
.SH "TQLayout * TQWidget::layout () const"
Returns the layout engine that manages the geometry of this widget's children.
.PP
If the widget does not have a layout, layout() returns 0.
@ -2904,9 +2904,9 @@ This property holds the widget's minimum size.
.PP
The widget cannot be resized to a smaller size than the minimum widget size. The widget's size is forced to the minimum size if the current size is smaller.
.PP
If you use a layout inside the widget, the minimum size will be set by the layout and not by setMinimumSize(), unless you set the layout's resize mode to QLayout::FreeResize.
If you use a layout inside the widget, the minimum size will be set by the layout and not by setMinimumSize(), unless you set the layout's resize mode to TQLayout::FreeResize.
.PP
See also minimumWidth, minimumHeight, maximumSize, sizeIncrement, and QLayout::resizeMode.
See also minimumWidth, minimumHeight, maximumSize, sizeIncrement, and TQLayout::resizeMode.
.PP
Set this property's value with setMinimumSize() and get this property's value with minimumSize().
.SH "TQSize minimumSizeHint"
@ -2916,7 +2916,7 @@ If the value of this property is an invalid size, no minimum size is recommended
.PP
The default implementation of minimumSizeHint() returns an invalid size if there is no layout for this widget, and returns the layout's minimum size otherwise. Most built-in widgets reimplement minimumSizeHint().
.PP
QLayout will never resize a widget to a size smaller than minimumSizeHint.
TQLayout will never resize a widget to a size smaller than minimumSizeHint.
.PP
See also TQSize::isValid(), size, minimumSize, and sizePolicy.
.PP
@ -3042,7 +3042,7 @@ When resizing, the widget, if visible, receives a resize event (resizeEvent()) i
.PP
The size is adjusted if it lies outside the range defined by minimumSize() and maximumSize(). Furthermore, the size is always at least TQSize(1, 1). For toplevel widgets, the minimum size might be larger, depending on the window manager.
.PP
If you want a top-level window to have a fixed size, call setResizeMode( QLayout::FreeResize ) on its layout.
If you want a top-level window to have a fixed size, call setResizeMode( TQLayout::FreeResize ) on its layout.
.PP
resize() is virtual, and all other overloaded resize() implementations in TQt call it.
.PP
@ -3084,11 +3084,11 @@ Set this property's value with setSizeIncrement() and get this property's value
.SH "TQSizePolicy sizePolicy"
This property holds the default layout behavior of the widget.
.PP
If there is a QLayout that manages this widget's children, the size policy specified by that layout is used. If there is no such QLayout, the result of this function is used.
If there is a TQLayout that manages this widget's children, the size policy specified by that layout is used. If there is no such TQLayout, the result of this function is used.
.PP
The default policy is Preferred/Preferred, which means that the widget can be freely resized, but prefers to be the size sizeHint() returns. Button-like widgets set the size policy to specify that they may stretch horizontally, but are fixed vertically. The same applies to lineedit controls (such as TQLineEdit, TQSpinBox or an editable TQComboBox) and other horizontally orientated widgets (such as TQProgressBar). TQToolButton's are normally square, so they allow growth in both directions. Widgets that support different directions (such as TQSlider, TQScrollBar or TQHeader) specify stretching in the respective direction only. Widgets that can provide scrollbars (usually subclasses of TQScrollView) tend to specify that they can use additional space, and that they can make do with less than sizeHint().
.PP
See also sizeHint, QLayout, TQSizePolicy, and updateGeometry().
See also sizeHint, TQLayout, TQSizePolicy, and updateGeometry().
.PP
Set this property's value with setSizePolicy() and get this property's value with sizePolicy().
Returns whether this item's widget can make use of more space than sizeHint(). A value of \fCVertical\fR or \fCHorizontal\fR means that it wants to grow in only one dimension, whereas \fCBothDirections\fR means that it wants to grow in both dimensions and \fCNoDirection\fR means that it doesn't want to grow at all.
@ -200,11 +200,11 @@ This signal is emitted when the user clicks on the Help button.
Returns the position of page \fIpage\fR. If the page is not part of the wizard -1 is returned.
.SH "void TQWizard::insertPage ( TQWidget * page, const TQString & title, int index )\fC [virtual]\fR"
Inserts \fIpage\fR at position \fIindex\fR into the page sequence, with title \fItitle\fR. If \fIindex\fR is -1, the page will be appended to the end of the wizard's page sequence.
This virtual function is responsible for laying out the title row.
.PP
\fIlayout\fR is the horizontal layout for the wizard, and \fItitle\fR is the title for this page. This function is called every time \fItitle\fR changes.