<p>This property holds the action's accelerator key.
<p>The keycodes can be found in <a href="ntqt.html#Key-enum">Qt::Key</a> and <a href="ntqt.html#Modifier-enum">Qt::Modifier</a>. There
<p>The keycodes can be found in <a href="ntqt.html#Key-enum">TQt::Key</a> and <a href="ntqt.html#Modifier-enum">TQt::Modifier</a>. There
is no default accelerator key.
<p>Set this property's value with <a href="ntqaction.html#setAccel">setAccel</a>() and get this property's value with <a href="ntqaction.html#accel">accel</a>().
<p>This property holds the format used for displaying date/time values.
<p>The dateFormat property is used for displaying date/time values in
the table. The default value is <a href="ntqt.html#DateFormat-enum">Qt::LocalDate</a>.
the table. The default value is <a href="ntqt.html#DateFormat-enum">TQt::LocalDate</a>.
<p>Set this property's value with <a href="ntqdatatable.html#setDateFormat">setDateFormat</a>() and get this property's value with <a href="ntqdatatable.html#dateFormat">dateFormat</a>().
</doc>
@ -1470,7 +1470,7 @@ usually to the left.
<li> <a href="ntqt.html#AlignmentFlags-enum">AlignHCenter</a> aligns the title text centered.
</ul>
<p> The default alignment is <a href="ntqt.html#AlignmentFlags-enum">AlignAuto</a>.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignmentFlags</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>().
</doc>
@ -1894,7 +1894,7 @@ of 0.
<name>QLabel::alignment</name>
<doc href="ntqlabel.html#alignment-prop">
<p>This property holds the alignment of the label's contents.
<p>The alignment is a bitwise OR of <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignmentFlags</a> and <a href="ntqt.html#TextFlags-enum">Qt::TextFlags</a> values. The <a href="ntqt.html#TextFlags-enum">ExpandTabs</a>, <a href="ntqt.html#TextFlags-enum">SingleLine</a> and <a href="ntqt.html#TextFlags-enum">ShowPrefix</a> flags apply only if the label contains plain text;
<p>The alignment is a bitwise OR of <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a> and <a href="ntqt.html#TextFlags-enum">TQt::TextFlags</a> values. The <a href="ntqt.html#TextFlags-enum">ExpandTabs</a>, <a href="ntqt.html#TextFlags-enum">SingleLine</a> and <a href="ntqt.html#TextFlags-enum">ShowPrefix</a> flags apply only if the label contains plain text;
otherwise they are ignored. The <a href="ntqt.html#TextFlags-enum">DontClip</a> flag is always
ignored. <a href="ntqt.html#TextFlags-enum">WordBreak</a> applies to both rich text and plain text
labels. The <a href="ntqt.html#TextFlags-enum">BreakAnywhere</a> flag is not supported in QLabel.
@ -1903,7 +1903,7 @@ TRUE.
<p> The default alignment is <tt>AlignAuto | AlignVCenter | ExpandTabs</tt>
if the label doesn't have a buddy and <tt>AlignAuto | AlignVCenter | ExpandTabs | ShowPrefix</tt> if the label has a buddy. If the label
contains rich text, additionally <a href="ntqt.html#TextFlags-enum">WordBreak</a> is turned on.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignmentFlags</a>, <a href="ntqlabel.html#setBuddy">setBuddy</a>(), and <a href="ntqlabel.html#text-prop">text</a>.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>, <a href="ntqlabel.html#setBuddy">setBuddy</a>(), and <a href="ntqlabel.html#text-prop">text</a>.
<p>Set this property's value with <a href="ntqlabel.html#setAlignment">setAlignment</a>() and get this property's value with <a href="ntqlabel.html#alignment">alignment</a>().
</doc>
@ -1978,7 +1978,7 @@ and can also provide a scrollbar when necessary.
<name>QLabel::textFormat</name>
<doc href="ntqlabel.html#textFormat-prop">
<p>This property holds the label's text format.
<p>See the <a href="ntqt.html#TextFormat-enum">Qt::TextFormat</a> enum for an explanation of the possible
<p>See the <a href="ntqt.html#TextFormat-enum">TQt::TextFormat</a> enum for an explanation of the possible
options.
<p> The default format is <a href="ntqt.html#TextFormat-enum">AutoText</a>.
<p> <p>See also <a href="ntqlabel.html#text-prop">text</a>.
@ -2032,10 +2032,10 @@ should not override the widget's spacing.
<name>QLineEdit::alignment</name>
<doc href="ntqlineedit.html#alignment-prop">
<p>This property holds the alignment of the line edit.
<p>Possible Values are <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignAuto</a>, <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignLeft</a>, <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignRight</a> and <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignHCenter</a>.
<p>Possible Values are <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignAuto</a>, <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignLeft</a>, <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignRight</a> and <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignHCenter</a>.
<p> Attempting to set the alignment to an illegal flag combination
does nothing.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignmentFlags</a>.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>.
<p>Set this property's value with <a href="ntqlineedit.html#setAlignment">setAlignment</a>() and get this property's value with <a href="ntqlineedit.html#alignment">alignment</a>().
</doc>
@ -2697,7 +2697,7 @@ the message box will try to auto-detect the format of the text.
<name>QMessageBox::textFormat</name>
<doc href="ntqmessagebox.html#textFormat-prop">
<p>This property holds the format of the text displayed by the message box.
<p>The current text format used by the message box. See the <a href="ntqt.html#TextFormat-enum">Qt::TextFormat</a> enum for an explanation of the possible options.
<p>The current text format used by the message box. See the <a href="ntqt.html#TextFormat-enum">TQt::TextFormat</a> enum for an explanation of the possible options.
<p> The default format is <a href="ntqt.html#TextFormat-enum">AutoText</a>.
<p> <p>See also <a href="ntqmessagebox.html#text-prop">text</a>.
@ -2709,7 +2709,7 @@ the message box will try to auto-detect the format of the text.
<doc href="ntqmultilineedit.html#alignment-prop"> <p>This property holds the editor's paragraph alignment.
<p>Sets the alignment to flag, which must be <a href="ntqt.html#AlignmentFlags-enum">AlignLeft</a>, <a href="ntqt.html#AlignmentFlags-enum">AlignHCenter</a> or <a href="ntqt.html#AlignmentFlags-enum">AlignRight</a>.
<p> If flag is an illegal flag nothing happens.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">Qt::AlignmentFlags</a>.
<p> <p>See also <a href="ntqt.html#AlignmentFlags-enum">TQt::AlignmentFlags</a>.
<p>Set this property's value with <a href="ntqmultilineedit.html#setAlignment">setAlignment</a>() and get this property's value with <a href="ntqmultilineedit.html#alignment">alignment</a>().
</doc>
@ -3060,7 +3060,7 @@ adjusted if necessary to ensure that the range remains valid.
<name>QScrollBar::orientation</name>
<doc href="ntqscrollbar.html#orientation-prop">
<p>This property holds the orientation of the scroll bar.
<p>The orientation must be <a href="ntqt.html#Orientation-enum">Qt::Vertical</a> (the default) or <a href="ntqt.html#Orientation-enum">Qt::Horizontal</a>.
<p>The orientation must be <a href="ntqt.html#Orientation-enum">TQt::Vertical</a> (the default) or <a href="ntqt.html#Orientation-enum">TQt::Horizontal</a>.
<p>Set this property's value with <a href="ntqscrollbar.html#setOrientation">setOrientation</a>() and get this property's value with <a href="ntqscrollbar.html#orientation">orientation</a>().
</doc>
@ -3233,7 +3233,7 @@ if necessary, to ensure that the range remains valid.
<name>QSlider::orientation</name>
<doc href="ntqslider.html#orientation-prop">
<p>This property holds the slider's orientation.
<p>The orientation must be <a href="ntqt.html#Orientation-enum">Qt::Vertical</a> (the default) or <a href="ntqt.html#Orientation-enum">Qt::Horizontal</a>.
<p>The orientation must be <a href="ntqt.html#Orientation-enum">TQt::Vertical</a> (the default) or <a href="ntqt.html#Orientation-enum">TQt::Horizontal</a>.
<p>Set this property's value with <a href="ntqslider.html#setOrientation">setOrientation</a>() and get this property's value with <a href="ntqslider.html#orientation">orientation</a>().
Returns the shortcut key sequence for \fIstr\fR, or an invalid key sequence (0) if \fIstr\fR has no shortcut sequence.
.PP
For example, shortcutKey("E&xit") returns ALT+Key_X, shortcutKey("&Quit") returns ALT+Key_Q and shortcutKey("Quit") returns 0. (In code that does not inherit the TQt namespace class, you must write e.g. Qt::ALT+Qt::Key_Q.)
For example, shortcutKey("E&xit") returns ALT+Key_X, shortcutKey("&Quit") returns ALT+Key_Q and shortcutKey("Quit") returns 0. (In code that does not inherit the TQt namespace class, you must write e.g. TQt::ALT+TQt::Key_Q.)
.PP
We provide a list of common accelerators in English. At the time of writing, Microsoft and Open Group do not appear to have issued equivalent recommendations for other languages.
.SH "QKeySequence QAccel::stringToKey ( const TQString & s )\fC [static]\fR"
Changes the default application font to \fIfont\fR. If \fIinformWidgets\fR is TRUE, then existing widgets are informed about the change and may adjust themselves to the new application setting. If \fIinformWidgets\fR is FALSE, the change only affects newly created widgets. If \fIclassName\fR is passed, the change applies only to classes that inherit \fIclassName\fR (as reported by TQObject::inherits()).
@ -237,7 +237,7 @@ The stretch factor applies only in the direction of the QBoxLayout, and is relat
.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.
.PP
Alignment is specified by \fIalignment\fR which is a bitwise OR of Qt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
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
@ -294,7 +294,7 @@ The stretch factor applies only in the direction of the QBoxLayout, and is relat
.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.
.PP
Alignment is specified by \fIalignment\fR, which is a bitwise OR of Qt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
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().
@ -161,7 +161,7 @@ Returns TRUE if the item is tristate; otherwise returns FALSE.
.PP
See also setTristate().
.SH "void QCheckListItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align )\fC [virtual]\fR"
Paints the item using the painter \fIp\fR and the color group \fIcg\fR. The item is in column \fIcolumn\fR, has width \fIwidth\fR and has alignment \fIalign\fR. (See Qt::AlignmentFlags for valid alignments.)
Paints the item using the painter \fIp\fR and the color group \fIcg\fR. The item is in column \fIcolumn\fR, has width \fIwidth\fR and has alignment \fIalign\fR. (See TQt::AlignmentFlags for valid alignments.)
@ -111,11 +111,11 @@ To set or get the position of the mouse cursor use the static methods QCursor::p
.PP
See also TQWidget, GUI Design Handbook: Cursors, Widget Appearance and Style, and Implicitly and Explicitly Shared Classes.
.PP
On X11, TQt supports the Xcursor library, which allows for full color icon themes. The table below shows the cursor name used for each Qt::CursorShape value. If a cursor cannot be found using the name shown below, a standard X11 cursor will be used instead. Note: X11 does not provide appropriate cursors for all possible Qt::CursorShape values. It is possible that some cursors will be taken from the Xcursor theme, while others will use an internal bitmap cursor.
On X11, TQt supports the Xcursor library, which allows for full color icon themes. The table below shows the cursor name used for each TQt::CursorShape value. If a cursor cannot be found using the name shown below, a standard X11 cursor will be used instead. Note: X11 does not provide appropriate cursors for all possible TQt::CursorShape values. It is possible that some cursors will be taken from the Xcursor theme, while others will use an internal bitmap cursor.
Returns the QDate represented by the string \fIs\fR, using the format \fIf\fR, or an invalid date if the string cannot be parsed.
.PP
Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.
Note for TQt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.
.PP
\fBWarning:\fR Qt::LocalDate cannot be used here.
\fBWarning:\fR TQt::LocalDate cannot be used here.
.SH "bool QDate::isNull () const"
Returns TRUE if the date is null; otherwise returns FALSE. A null date is invalid.
.PP
@ -361,16 +361,16 @@ l - l. Format Result dd.MM.yyyy 20.07.1969 ddd MMMM d yy
If the date is an invalid date, then TQString::null will be returned.
.PP
See also QDateTime::toString() and QTime::toString().
.SH "TQString QDate::toString ( Qt::DateFormat f = Qt::TextDate ) const"
.SH "TQString QDate::toString ( TQt::DateFormat f = TQt::TextDate ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the date as a string. The \fIf\fR parameter determines the format of the string.
.PP
If \fIf\fR is Qt::TextDate, the string format is "Sat May 20 1995" (using the shortDayName() and shortMonthName() functions to generate the string, so the day and month names are locale specific).
If \fIf\fR is TQt::TextDate, the string format is "Sat May 20 1995" (using the shortDayName() and shortMonthName() functions to generate the string, so the day and month names are locale specific).
.PP
If \fIf\fR is Qt::ISODate, the string format corresponds to the ISO 8601 specification for representations of dates, which is YYYY-MM-DD where YYYY is the year, MM is the month of the year (between 01 and 12), and DD is the day of the month between 01 and 31.
If \fIf\fR is TQt::ISODate, the string format corresponds to the ISO 8601 specification for representations of dates, which is YYYY-MM-DD where YYYY is the year, MM is the month of the year (between 01 and 12), and DD is the day of the month between 01 and 31.
.PP
If \fIf\fR is Qt::LocalDate, the string format depends on the locale settings of the system.
If \fIf\fR is TQt::LocalDate, the string format depends on the locale settings of the system.
.PP
If the date is an invalid date, then TQString::null will be returned.
Returns the QDateTime represented by the string \fIs\fR, using the format \fIf\fR, or an invalid datetime if this is not possible.
.PP
Note for Qt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.
Note for TQt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.
.PP
\fBWarning:\fR Note that Qt::LocalDate cannot be used here.
\fBWarning:\fR Note that TQt::LocalDate cannot be used here.
.SH "bool QDateTime::isNull () const"
Returns TRUE if both the date and the time are null; otherwise returns FALSE. A null datetime is invalid.
.PP
@ -232,8 +232,8 @@ See also date() and setTime().
Sets the time part of this datetime to \fItime\fR.
Sets the date and time to \fIts\fR time (Qt::LocalTime or Qt::UTC) given the number of seconds that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (UTC). On systems that do not support timezones this function will behave as if local time were UTC.
Sets the date and time to \fIts\fR time (TQt::LocalTime or TQt::UTC) given the number of seconds that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (UTC). On systems that do not support timezones this function will behave as if local time were UTC.
.PP
On Windows, only a subset of \fIsecsSince1Jan1970UTC\fR values are supported, as Windows starts counting from 1980.
.PP
@ -281,16 +281,16 @@ l - l. Format Result dd.MM.yyyy 21.05.2001 ddd MMMM d yy Tue May 21 01 hh:mm:ss.
If the datetime is an invalid datetime, then TQString::null will be returned.
.PP
See also QDate::toString() and QTime::toString().
.SH "TQString QDateTime::toString ( Qt::DateFormat f = Qt::TextDate ) const"
.SH "TQString QDateTime::toString ( TQt::DateFormat f = TQt::TextDate ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the datetime as a string. The \fIf\fR parameter determines the format of the string.
.PP
If \fIf\fR is Qt::TextDate, the string format is "Wed May 20 03:40:13 1998" (using QDate::shortDayName(), QDate::shortMonthName(), and QTime::toString() to generate the string, so the day and month names will have localized names).
If \fIf\fR is TQt::TextDate, the string format is "Wed May 20 03:40:13 1998" (using QDate::shortDayName(), QDate::shortMonthName(), and QTime::toString() to generate the string, so the day and month names will have localized names).
.PP
If \fIf\fR is Qt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates and times, which is YYYY-MM-DDTHH:MM:SS.
If \fIf\fR is TQt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates and times, which is YYYY-MM-DDTHH:MM:SS.
.PP
If \fIf\fR is Qt::LocalDate, the string format depends on the locale settings of the system.
If \fIf\fR is TQt::LocalDate, the string format depends on the locale settings of the system.
.PP
If the format \fIf\fR is invalid or the datetime is invalid, toString() returns a null string.
@ -198,7 +198,7 @@ The widget flags \fIf\fR are passed on to the TQWidget constructor. If, for exam
.PP
\fBWarning:\fR In TQt 3.2, the \fImodal\fR flag is obsolete. There is now a setModal() function that can be used for obtaining a modal behavior when calling show(). This is rarely needed, because modal dialogs are usually invoked using exec(), which ignores the \fImodal\fR flag.
.PP
See also TQWidget::setWFlags() and Qt::WidgetFlags.
See also TQWidget::setWFlags() and TQt::WidgetFlags.
.SH "void QGridLayout::addMultiCell ( QLayoutItem * 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 Qt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
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 QGridLayout::addMultiCellLayout ( QLayout * 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 Qt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
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
A non-zero alignment indicates that the layout should not grow to fill the available space but should be sized according to sizeHint().
.PP
@ -239,7 +239,7 @@ See also addLayout().
.SH "void QGridLayout::addMultiCellWidget ( TQWidget * w, int fromRow, int toRow, int fromCol, int toCol, int alignment = 0 )"
Adds the widget \fIw\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 Qt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
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
A non-zero alignment indicates that the widget should not grow to fill the available space but should be sized according to sizeHint().
.PP
@ -256,7 +256,7 @@ Use setRowSpacing() instead.
.SH "void QGridLayout::addWidget ( TQWidget * w, int row, int col, int alignment = 0 )"
Adds the widget \fIw\fR to the cell grid at \fIrow\fR, \fIcol\fR. The top-left position is (0, 0) by default.
.PP
Alignment is specified by \fIalignment\fR, which is a bitwise OR of Qt::AlignmentFlags values. The default alignment is 0, which means that the widget fills the entire cell.
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.
.TP
You should not call this if you have enabled the auto-add facility of the layout.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns a pointer to the first item whose text begins with \fItext\fR, or 0 if no such item could be found. Use the \fIcompare\fR flag to control the comparison behaviour. (See Qt::StringComparisonMode.)
Returns a pointer to the first item whose text begins with \fItext\fR, or 0 if no such item could be found. Use the \fIcompare\fR flag to control the comparison behaviour. (See TQt::StringComparisonMode.)
Finds the last item whose bounding rectangle overlaps \fIr\fR and returns a pointer to that item. \fIr\fR is given in content coordinates. Returns 0 if no item overlaps \fIr\fR.
@ -527,7 +527,7 @@ Returns \fC*this\fR if \fIdepth\fR is equal to the image depth, or a null image
.PP
If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversion_flags\fR to specify how you'd prefer this to happen.
.PP
See also Qt::ImageConversionFlags, depth(), and isNull().
See also TQt::ImageConversionFlags, depth(), and isNull().
.SH "TQImage TQImage::convertDepth ( int depth ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.SH "TQImage TQImage::convertDepthWithPalette ( int d, TQRgb * palette, int palette_count, int conversion_flags = 0 ) const"
@ -539,7 +539,7 @@ Note: currently no closest-color search is made. If colors are found that are no
.PP
Currently inefficient for non-32-bit images.
.PP
See also Qt::ImageConversionFlags.
See also TQt::ImageConversionFlags.
.SH "TQImage TQImage::copy () const"
Returns a deep copy of the image.
.PP
@ -553,7 +553,7 @@ The returned image is always \fIw\fR by \fIh\fR pixels in size, and is copied fr
.PP
If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversion_flags\fR to specify how you'd prefer this to happen.
.PP
See also bitBlt() and Qt::ImageConversionFlags.
See also bitBlt() and TQt::ImageConversionFlags.
.SH "TQImage TQImage::copy ( const QRect & r ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
@ -103,7 +103,7 @@ Note that if the event is a multiple-key compressed event that is partly due to
.SH "int QKeyEvent::key () const"
Returns the code of the key that was pressed or released.
.PP
See Qt::Key for the list of keyboard codes. These codes are independent of the underlying window system.
See TQt::Key for the list of keyboard codes. These codes are independent of the underlying window system.
.PP
A value of either 0 or Key_unknown means that the event is not the result of a known key (e.g. it may be the result of a compose sequence or a keyboard macro, or due to key event compression).
Matches the sequence with \fIseq\fR. Returns Qt::Identical if successful, Qt::PartialMatch for matching but incomplete \fIseq\fR, and Qt::NoMatch if the sequences have nothing in common. Returns Qt::NoMatch if \fIseq\fR is shorter.
Matches the sequence with \fIseq\fR. Returns TQt::Identical if successful, TQt::PartialMatch for matching but incomplete \fIseq\fR, and TQt::NoMatch if the sequences have nothing in common. Returns TQt::NoMatch if \fIseq\fR is shorter.
.SH "QKeySequence::operator TQString () const"
Creates an accelerator string for the key sequence. For instance CTRL+Key_O gives "Ctrl+O". If the key sequence has multiple key codes they are returned comma-separated, e.g." Alt+X, Ctrl+Y, Z". The strings, "Ctrl", "Shift", etc. are translated (using TQObject::tr()) in the "QAccel" scope. If the key sequence has no keys, TQString::null is returned.
@ -339,13 +339,13 @@ Returns the label's text format. See the "textFormat" property for details.
.SH "Alignment alignment"
This property holds the alignment of the label's contents.
.PP
The alignment is a bitwise OR of Qt::AlignmentFlags and Qt::TextFlags values. The ExpandTabs, SingleLine and ShowPrefix flags apply only if the label contains plain text; otherwise they are ignored. The DontClip flag is always ignored. WordBreak applies to both rich text and plain text labels. The BreakAnywhere flag is not supported in QLabel.
The alignment is a bitwise OR of TQt::AlignmentFlags and TQt::TextFlags values. The ExpandTabs, SingleLine and ShowPrefix flags apply only if the label contains plain text; otherwise they are ignored. The DontClip flag is always ignored. WordBreak applies to both rich text and plain text labels. The BreakAnywhere flag is not supported in QLabel.
.PP
If the label has a buddy, the ShowPrefix flag is forced to TRUE.
.PP
The default alignment is \fCAlignAuto | AlignVCenter | ExpandTabs\fR if the label doesn't have a buddy and \fCAlignAuto | AlignVCenter | ExpandTabs | ShowPrefix\fR if the label has a buddy. If the label contains rich text, additionally WordBreak is turned on.
.PP
See also Qt::AlignmentFlags, setBuddy(), and text.
See also TQt::AlignmentFlags, setBuddy(), and text.
.PP
Set this property's value with setAlignment() and get this property's value with alignment().
.SH "BackgroundMode backgroundMode"
@ -401,7 +401,7 @@ Set this property's value with setText() and get this property's value with text
.SH "TextFormat textFormat"
This property holds the label's text format.
.PP
See the Qt::TextFormat enum for an explanation of the possible options.
See the TQt::TextFormat enum for an explanation of the possible options.
@ -488,7 +488,7 @@ Constructs a new empty list box called \fIname\fR and with parent \fIparent\fR.
.PP
Performance is boosted by modifying the widget flags \fIf\fR so that only part of the QListBoxItem children is redrawn. This may be unsuitable for custom QListBoxItem classes, in which case WStaticContents and WNoAutoErase should be cleared immediately after construction.
.PP
See also TQWidget::clearWFlags() and Qt::WidgetFlags.
See also TQWidget::clearWFlags() and TQt::WidgetFlags.
.SH "QListBox::~QListBox ()"
Destroys the list box. Deletes all list box items.
.SH "bool QListBox::autoBottomScrollBar () const"
@ -606,7 +606,7 @@ Ensures that the current item is visible.
Finds the first list box item that has the text \fItext\fR and returns it, or returns 0 of no such item could be found. The search starts from the current item if the current item exists, otherwise it starts from the first list box item. If \fCComparisonFlags\fR are specified in \fIcompare\fR then these flags are used, otherwise the default is a case-insensitive, "begins with" search.
.PP
See also Qt::StringComparisonMode.
See also TQt::StringComparisonMode.
.SH "int QListBox::findItem ( int yPos ) const\fC [protected]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
@ -518,7 +518,7 @@ Constructs a new empty list view called \fIname\fR with parent \fIparent\fR.
.PP
Performance is boosted by modifying the widget flags \fIf\fR so that only part of the QListViewItem children is redrawn. This may be unsuitable for custom QListViewItem classes, in which case WStaticContents and WNoAutoErase should be cleared.
.PP
See also TQWidget::clearWFlags() and Qt::WidgetFlags.
See also TQWidget::clearWFlags() and TQt::WidgetFlags.
.SH "QListView::~QListView ()"
Destroys the list view, deleting all its items, and frees up all allocated resources.
Finds the first list view item in column \fIcolumn\fR, that matches \fItext\fR and returns the item, or returns 0 of no such item could be found. The search starts from the current item if the current item exists, otherwise it starts from the first list view item. After reaching the last item the search continues from the first item. Pass OR-ed together Qt::StringComparisonMode values in the \fIcompare\fR flag, to control how the matching is performed. The default comparison mode is case-sensitive, exact match.
Finds the first list view item in column \fIcolumn\fR, that matches \fItext\fR and returns the item, or returns 0 of no such item could be found. The search starts from the current item if the current item exists, otherwise it starts from the first list view item. After reaching the last item the search continues from the first item. Pass OR-ed together TQt::StringComparisonMode values in the \fIcompare\fR flag, to control how the matching is performed. The default comparison mode is case-sensitive, exact match.
Sets whether items should show keyboard focus using all columns. See the "allColumnsShowFocus" property for details.
.SH "void QListView::setColumnAlignment ( int column, int align )\fC [virtual]\fR"
Sets column \fIcolumn\fR's alignment to \fIalign\fR. The alignment is ultimately passed to QListViewItem::paintCell() for each item in the list view. For horizontally aligned text with Qt::AlignLeft or Qt::AlignHCenter the ellipsis (...) will be to the right, for Qt::AlignRight the ellipsis will be to the left.
Sets column \fIcolumn\fR's alignment to \fIalign\fR. The alignment is ultimately passed to QListViewItem::paintCell() for each item in the list view. For horizontally aligned text with TQt::AlignLeft or TQt::AlignHCenter the ellipsis (...) will be to the right, for TQt::AlignRight the ellipsis will be to the left.
@ -372,7 +372,7 @@ The main window will take care of the dock areas, and the geometry of the centra
.PP
QMainWindow provides a QToolTipGroup connected to the status bar. The function toolTipGroup() provides access to the default QToolTipGroup. It isn't possible to set a different tool tip group.
.PP
New dock windows and toolbars can be added to a QMainWindow using addDockWindow(). Dock windows can be moved using moveDockWindow() and removed with removeDockWindow(). QMainWindow allows default dock window (toolbar) docking in all its dock areas (Top, Left, Right, Bottom). You can use setDockEnabled() to enable and disable docking areas for dock windows. When adding or moving dock windows you can specify their 'edge' (dock area). The currently available edges are: Top, Left, Right, Bottom, Minimized (effectively a 'hidden' dock area) and TornOff (floating). See Qt::Dock for an explanation of these areas. Note that the *ToolBar functions are included for backward compatibility; all new code should use the *DockWindow functions. QToolbar is a subclass of QDockWindow so all functions that work with dock windows work on toolbars in the same way.
New dock windows and toolbars can be added to a QMainWindow using addDockWindow(). Dock windows can be moved using moveDockWindow() and removed with removeDockWindow(). QMainWindow allows default dock window (toolbar) docking in all its dock areas (Top, Left, Right, Bottom). You can use setDockEnabled() to enable and disable docking areas for dock windows. When adding or moving dock windows you can specify their 'edge' (dock area). The currently available edges are: Top, Left, Right, Bottom, Minimized (effectively a 'hidden' dock area) and TornOff (floating). See TQt::Dock for an explanation of these areas. Note that the *ToolBar functions are included for backward compatibility; all new code should use the *DockWindow functions. QToolbar is a subclass of QDockWindow so all functions that work with dock windows work on toolbars in the same way.
.PP
If the user clicks the close button, then the dock window is hidden. A dock window can be hidden or unhidden by the user by right clicking a dock area and clicking the name of the relevant dock window on the pop up dock window menu. This menu lists the names of every dock window; visible dock windows have a tick beside their names. The dock window menu is created automatically as required by createDockWindowMenu(). Since it may not always be appropriate for a dock window to appear on this menu the setAppropriate() function is used to inform the main window whether or not the dock window menu should include a particular dock window. Double clicking a dock window handle (usually on the left-hand side of the dock window) undocks (floats) the dock window. Double clicking a floating dock window's titlebar will dock the floating dock window. (See also QMainWindow::DockWindows.)
The \fItype\fR parameter must be one of QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick or QEvent::MouseMove.
.PP
The \fIpos\fR parameter specifies the position relative to the receiving widget. \fIbutton\fR specifies the button that caused the event, which should be Qt::NoButton (0), if \fItype\fR is MouseMove. \fIstate\fR is the ButtonState at the time of the event.
The \fIpos\fR parameter specifies the position relative to the receiving widget. \fIbutton\fR specifies the button that caused the event, which should be TQt::NoButton (0), if \fItype\fR is MouseMove. \fIstate\fR is the ButtonState at the time of the event.
.PP
The globalPos() is initialized to QCursor::pos(), which may not be appropriate. Use the other constructor to specify the global position explicitly.
.SH "QMouseEvent::QMouseEvent ( Type type, const QPoint & pos, const QPoint & globalPos, int button, int state )"
@ -90,7 +90,7 @@ Constructs a mouse event object.
.PP
The \fItype\fR parameter must be QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick or QEvent::MouseMove.
.PP
The \fIpos\fR parameter specifies the position relative to the receiving widget. \fIglobalPos\fR is the position in absolute coordinates. \fIbutton\fR specifies the button that caused the event, which should be Qt::NoButton (0), if \fItype\fR is MouseMove. \fIstate\fR is the ButtonState at the time of the event.
The \fIpos\fR parameter specifies the position relative to the receiving widget. \fIglobalPos\fR is the position in absolute coordinates. \fIbutton\fR specifies the button that caused the event, which should be TQt::NoButton (0), if \fItype\fR is MouseMove. \fIstate\fR is the ButtonState at the time of the event.
.SH "void QMouseEvent::accept ()"
Sets the accept flag of the mouse event object.
.PP
@ -106,7 +106,7 @@ Possible return values are LeftButton, RightButton, MidButton and NoButton.
.PP
Note that the returned value is always NoButton for mouse move events.
.PP
See also state() and Qt::ButtonState.
See also state() and TQt::ButtonState.
.PP
Examples:
.)l dclock/dclock.cpp, life/life.cpp, and t14/cannon.cpp.
@ -152,14 +152,14 @@ This value is mainly interesting for QEvent::MouseMove; for the other cases, but
.PP
The returned value is LeftButton, RightButton, MidButton, ShiftButton, ControlButton and AltButton OR'ed together.
.PP
See also button(), stateAfter(), and Qt::ButtonState.
See also button(), stateAfter(), and TQt::ButtonState.
@ -28,7 +28,7 @@ Inherited by TQWidget, QPixmap, QPicture, and QPrinter.
.BI "virtual HDC \fBhandle\fR () const"
.br
.ti -1c
.BI "virtual Qt::HANDLE \fBhandle\fR () const"
.BI "virtual TQt::HANDLE \fBhandle\fR () const"
.br
.ti -1c
.BI "Display * \fBx11Display\fR () const"
@ -43,7 +43,7 @@ Inherited by TQWidget, QPixmap, QPicture, and QPrinter.
.BI "int \fBx11Cells\fR () const"
.br
.ti -1c
.BI "Qt::HANDLE \fBx11Colormap\fR () const"
.BI "TQt::HANDLE \fBx11Colormap\fR () const"
.br
.ti -1c
.BI "bool \fBx11DefaultColormap\fR () const"
@ -82,10 +82,10 @@ Inherited by TQWidget, QPixmap, QPicture, and QPrinter.
.BI "int \fBx11AppCells\fR ()"
.br
.ti -1c
.BI "Qt::HANDLE \fBx11AppRootWindow\fR ()"
.BI "TQt::HANDLE \fBx11AppRootWindow\fR ()"
.br
.ti -1c
.BI "Qt::HANDLE \fBx11AppColormap\fR ()"
.BI "TQt::HANDLE \fBx11AppColormap\fR ()"
.br
.ti -1c
.BI "bool \fBx11AppDefaultColormap\fR ()"
@ -103,10 +103,10 @@ Inherited by TQWidget, QPixmap, QPicture, and QPrinter.
.BI "int \fBx11AppCells\fR ( int screen )"
.br
.ti -1c
.BI "Qt::HANDLE \fBx11AppRootWindow\fR ( int screen )"
.BI "TQt::HANDLE \fBx11AppRootWindow\fR ( int screen )"
.br
.ti -1c
.BI "Qt::HANDLE \fBx11AppColormap\fR ( int screen )"
.BI "TQt::HANDLE \fBx11AppColormap\fR ( int screen )"
.br
.ti -1c
.BI "void * \fBx11AppVisual\fR ( int screen )"
@ -142,7 +142,7 @@ Inherited by TQWidget, QPixmap, QPicture, and QPrinter.
.SH RELATED FUNCTION DOCUMENTATION
.in +1c
.ti -1c
.BI "void \fBbitBlt\fR ( QPaintDevice * dst, int dx, int dy, const QPaintDevice * src, int sx, int sy, int sw, int sh, Qt::RasterOp rop, bool ignoreMask )"
.BI "void \fBbitBlt\fR ( QPaintDevice * dst, int dx, int dy, const QPaintDevice * src, int sx, int sy, int sw, int sh, TQt::RasterOp rop, bool ignoreMask )"
Returns the window system handle of the paint device, for low-level access. Using this function is not portable.
.PP
The HANDLE type varies with platform; see ntqpaintdevice.h and ntqwindowdefs.h for details.
@ -225,11 +225,11 @@ This is an overloaded member function, provided for convenience. It behaves esse
Returns the number of entries in the colormap for screen \fIscreen\fR of the X display global to the application (X11 only). Using this function is not portable.
Returns the colormap for the default screen of the X display global to the application (X11 only). Using this function is not portable.
.PP
See also x11Cells().
.SH "Qt::HANDLE QPaintDevice::x11AppColormap ( int screen )\fC [static]\fR"
.SH "TQt::HANDLE QPaintDevice::x11AppColormap ( int screen )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the colormap for screen \fIscreen\fR of the X display global to the application (X11 only). Using this function is not portable.
@ -283,9 +283,9 @@ This is an overloaded member function, provided for convenience. It behaves esse
Returns the vertical DPI of the X11 display (X11 only) for the default screen. Using this function is not portable. See QPaintDeviceMetrics for portable access to related information. Using this function is not portable.
.PP
See also x11AppDpiX(), x11SetAppDpiY(), and QPaintDeviceMetrics::logicalDpiY().
Returns the colormap of the X display for the paint device (X11 only). Using this function is not portable.
.PP
See also x11Cells().
@ -340,10 +340,10 @@ Sets the value returned by x11AppDpiY() to \fIdpi\fR for the default screen. The
.SH "void * QPaintDevice::x11Visual () const"
Returns the Visual of the X display for the paint device (X11 only). Using this function is not portable.
.SH RELATED FUNCTION DOCUMENTATION
.SH "void bitBlt ( QPaintDevice * dst, int dx, int dy, const QPaintDevice * src, int sx, int sy, int sw, int sh, Qt::RasterOp rop, bool ignoreMask )"
.SH "void bitBlt ( QPaintDevice * dst, int dx, int dy, const QPaintDevice * src, int sx, int sy, int sw, int sh, TQt::RasterOp rop, bool ignoreMask )"
Copies a block of pixels from \fIsrc\fR to \fIdst\fR, perhaps merging each pixel according to the raster operation \fIrop\fR. \fIsx\fR, \fIsy\fR is the top-left pixel in \fIsrc\fR (0, 0) by default, \fIdx\fR, \fIdy\fR is the top-left position in \fIdst\fR and \fIsw\fR, \fIsh\fR is the size of the copied block (all of \fIsrc\fR by default).
.PP
The most common values for \fIrop\fR are CopyROP and XorROP; the Qt::RasterOp documentation defines all the possible values.
The most common values for \fIrop\fR are CopyROP and XorROP; the TQt::RasterOp documentation defines all the possible values.
.PP
If \fIignoreMask\fR is FALSE (the default) and \fIsrc\fR is a masked QPixmap, the entire blit is masked by \fIsrc\fR->mask().
@ -463,7 +463,7 @@ Mostly, all this is done inside a paint event. (In fact, 99% of all QPainter use
.br
QPainter paint( this );
.br
paint.setPen( Qt::blue );
paint.setPen( TQt::blue );
.br
paint.drawText( rect(), AlignCenter, "The Text" );
.br
@ -710,7 +710,7 @@ If several of the horizontal or several of the vertical alignment flags are set,
.PP
The \fIintern\fR parameter should not be used.
.PP
See also Qt::TextFlags.
See also TQt::TextFlags.
.SH "QRect QPainter::boundingRect ( const QRect & r, int flags, const TQString & str, int len = -1, QTextParag ** internal = 0 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
@ -718,7 +718,7 @@ Returns the bounding rectangle of the aligned text that would be printed with th
.PP
The \fIinternal\fR parameter should not be used.
.PP
See also drawText(), fontMetrics(), QFontMetrics::boundingRect(), and Qt::TextFlags.
See also drawText(), fontMetrics(), QFontMetrics::boundingRect(), and TQt::TextFlags.
.SH "const QBrush & QPainter::brush () const"
Returns the painter's current brush.
.PP
@ -821,7 +821,7 @@ Draws the image \fIi\fR at point \fIp\fR.
.PP
If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversion_flags\fR to specify how you'd prefer this to happen.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
@ -997,13 +997,13 @@ Draws the text from position \fIpos\fR, at point \fI(x, y)\fR. If \fIlen\fR is -
.SH "void QPainter::drawText ( int x, int y, int w, int h, int flags, const TQString &, int len = -1, QRect * br = 0, QTextParag ** internal = 0 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Draws the given text within the rectangle starting at \fIx\fR, \fIy\fR, with width \fIw\fR and height \fIh\fR. If \fIlen\fR is -1 (the default) all the text is drawn, otherwise the first \fIlen\fR characters are drawn. The text's flags that are given in the \fIflags\fR parameter are Qt::AlignmentFlags and Qt::TextFlags OR'd together. \fIbr\fR (if not null) is set to the actual bounding rectangle of the output. The \fIinternal\fR parameter is for internal use only.
Draws the given text within the rectangle starting at \fIx\fR, \fIy\fR, with width \fIw\fR and height \fIh\fR. If \fIlen\fR is -1 (the default) all the text is drawn, otherwise the first \fIlen\fR characters are drawn. The text's flags that are given in the \fIflags\fR parameter are TQt::AlignmentFlags and TQt::TextFlags OR'd together. \fIbr\fR (if not null) is set to the actual bounding rectangle of the output. The \fIinternal\fR parameter is for internal use only.
.SH "void QPainter::drawText ( const QRect & r, int tf, const TQString & str, int len = -1, QRect * brect = 0, QTextParag ** internal = 0 )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Draws at most \fIlen\fR characters from \fIstr\fR in the rectangle \fIr\fR.
.PP
This function draws formatted text. The \fItf\fR text format is really of type Qt::AlignmentFlags and Qt::TextFlags OR'd together.
This function draws formatted text. The \fItf\fR text format is really of type TQt::AlignmentFlags and TQt::TextFlags OR'd together.
.PP
Horizontal alignment defaults to AlignAuto and vertical alignment defaults to AlignTop.
.PP
@ -1341,7 +1341,7 @@ See also pen() and QPen.
.SH "void QPainter::setRasterOp ( RasterOp r )"
Sets the raster operation to \fIr\fR. The default is CopyROP.
.PP
See also rasterOp() and Qt::RasterOp.
See also rasterOp() and TQt::RasterOp.
.SH "void QPainter::setTabArray ( int * ta )"
Sets the tab stop array to \fIta\fR. This puts tab stops at \fIta[0]\fR, \fIta[1]\fR and so on. The array is null-terminated.
@ -87,7 +87,7 @@ The QPen class defines how a QPainter should draw lines and outlines of shapes.
.PP
A pen has a style, width, color, cap style and join style.
.PP
The pen style defines the line type. The default pen style is Qt::SolidLine. Setting the style to NoPen tells the painter to not draw lines or outlines.
The pen style defines the line type. The default pen style is TQt::SolidLine. Setting the style to NoPen tells the painter to not draw lines or outlines.
.PP
When drawing 1 pixel wide diagonal lines you can either use a very fast algorithm (specified by a line width of 0, which is the default), or a slower but more accurate algorithm (specified by a line width of 1). For horizontal and vertical lines a line width of 0 is the same as a line width of 1. The cap and join style have no effect on 0-width lines.
.PP
@ -119,7 +119,7 @@ Example:
.br
.fi
.PP
See the Qt::PenStyle enum type for a complete list of pen styles.
See the TQt::PenStyle enum type for a complete list of pen styles.
.PP
With reference to the end points of lines, for wide (non-0-width) pens it depends on the cap style whether the end point is drawn or not. QPainter will try to make sure that the end point is drawn for 0-width pens, but this cannot be absolutely guaranteed because the underlying drawing engine is free to use any (typically accelerated) algorithm for drawing 0-width lines. On all tested systems, however, the end point of at least all non-diagonal lines are drawn.
.PP
@ -223,7 +223,7 @@ Example: themes/wood.cpp.
.SH "void QPen::setStyle ( PenStyle s )"
Sets the pen style to \fIs\fR.
.PP
See the Qt::PenStyle documentation for a list of all the styles.
See the TQt::PenStyle documentation for a list of all the styles.
.PP
\fBWarning:\fR On Mac OS X the style setting (other than NoPen and SolidLine) have no effect as they are not implemented by the underlying system.
.BI "void \fBfill\fR ( const TQWidget * widget, int xofs, int yofs )"
@ -319,7 +319,7 @@ The \fIfileName\fR, \fIformat\fR and \fIconversion_flags\fR parameters are passe
.PP
If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversion_flags\fR to specify how you'd prefer this to happen.
.PP
See also Qt::ImageConversionFlags, isNull(), load(), loadFromData(), save(), and imageFormat().
See also TQt::ImageConversionFlags, isNull(), load(), loadFromData(), save(), and imageFormat().
.SH "QPixmap::QPixmap ( const char * xpm[] )"
Constructs a pixmap from \fIxpm\fR, which must be a valid XPM image.
Converts image \fIimg\fR and sets this pixmap. Returns TRUE if successful; otherwise returns FALSE.
.PP
The \fIconversion_flags\fR argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for \fIconversion_flags\fR sets all the default options.
The \fIconversion_flags\fR argument is a bitwise-OR of the TQt::ImageConversionFlags. Passing 0 for \fIconversion_flags\fR sets all the default options.
.PP
Note that even though a QPixmap with depth 1 behaves much like a QBitmap, isQBitmap() returns FALSE.
.PP
@ -419,7 +419,7 @@ A pixmap is automatically detached by TQt whenever its contents is about to chan
It is possible to modify a pixmap without letting TQt know. You can first obtain the system-dependent handle() and then call system-specific functions (for instance, BitBlt under Windows) that modify the pixmap contents. In such cases, you can call detach() to cut the pixmap loose from other pixmaps that share data with this one.
.PP
detach() returns immediately if there is just a single reference or if the pixmap has not been initialized yet.
@ -37,7 +37,7 @@ Creates an image packer that writes PNG data to IO device \fIiod\fR using a \fIs
.PP
If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the \fIconversionflags\fR to specify how you'd prefer this to happen.
@ -413,7 +413,7 @@ To enable drag-and-drop, you would setAcceptDrops(TRUE) on the QScrollView (beca
.PP
To handle mouse events on the scrolling area, subclass scrollview as you would subclass other widgets, but rather than reimplementing mousePressEvent(), reimplement contentsMousePressEvent() instead. The contents specific event handlers provide translated events in the coordinate system of the scrollview. If you reimplement mousePressEvent(), you'll get called only when part of the QScrollView is clicked: and the only such part is the "corner" (if you don't set a cornerWidget()) and the frame; everything else is covered up by the viewport, clipper or scroll bars.
.PP
When you construct a QScrollView, some of the widget flags apply to the viewport() instead of being sent to the TQWidget constructor for the QScrollView. This applies to WNoAutoErase, WStaticContents, and WPaintClever. See Qt::WidgetFlags for documentation about these flags. Here are some examples:
When you construct a QScrollView, some of the widget flags apply to the viewport() instead of being sent to the TQWidget constructor for the QScrollView. This applies to WNoAutoErase, WStaticContents, and WPaintClever. See TQt::WidgetFlags for documentation about these flags. Here are some examples:
.IP
.TP
An image-manipulation widget would use \fCWNoAutoErase|WStaticContents\fR because the widget draws all pixels itself, and when its size increases, it only needs a paint event for the new part because the old part remains unchanged.
@ -88,7 +88,7 @@ The font is used as a basis for the text rendering. When using rich text renderi
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
.PP
The \fIsheet\fR is an optional style sheet. If it is 0, the default style sheet will be used (see QStyleSheet::defaultSheet()).
Constructs a QSimpleRichText from the rich text string \fItext\fR and the font \fIfnt\fR.
.PP
This is a slightly more complex constructor for QSimpleRichText that takes an additional mime source factory \fIfactory\fR, a page break parameter \fIpageBreak\fR and a bool \fIlinkUnderline\fR. \fIlinkColor\fR is only provided for compatibility, but has no effect, as QColorGroup's QColorGroup::link() color is used now.
The \fIorientation\fR must be Qt::Vertical or Qt::Horizontal.
The \fIorientation\fR must be TQt::Vertical or TQt::Horizontal.
.PP
The \fIparent\fR and \fIname\fR arguments are sent on to the TQWidget constructor.
.SH "QSlider::QSlider ( int minValue, int maxValue, int pageStep, int value, Orientation orientation, TQWidget * parent, const char * name = 0 )"
Constructs a slider whose value can never be smaller than \fIminValue\fR or greater than \fImaxValue\fR, whose page step size is \fIpageStep\fR and whose value is initially \fIvalue\fR (which is guaranteed to be in range using bound()).
.PP
If \fIorientation\fR is Qt::Vertical the slider is vertical and if it is Qt::Horizontal the slider is horizontal.
If \fIorientation\fR is TQt::Vertical the slider is vertical and if it is TQt::Horizontal the slider is horizontal.
.PP
The \fIparent\fR and \fIname\fR arguments are sent on to the TQWidget constructor.
.SH "QSlider::~QSlider ()"
@ -324,7 +324,7 @@ Set this property's value with setMinValue() and get this property's value with
.SH "Orientation orientation"
This property holds the slider's orientation.
.PP
The orientation must be Qt::Vertical (the default) or Qt::Horizontal.
The orientation must be TQt::Vertical (the default) or TQt::Horizontal.
.PP
Set this property's value with setOrientation() and get this property's value with orientation().
This signal is emitted when the message on the splash screen changes. \fImessage\fR is the new message and is a null-string when the message has been removed.
@ -536,9 +536,9 @@ This enum represents a StyleHint. A StyleHint is a general look and/or feel hint
.TP
\fCQStyle::SH_ScrollBar_ScrollWhenPointerLeavesControl\fR - a boolean value. If TRUE, when clicking a scrollbar SubControl, holding the mouse button down and moving the pointer outside the SubControl, the scrollbar continues to scroll. If FALSE, the scollbar stops scrolling when the pointer leaves the SubControl.
.TP
\fCQStyle::SH_TabBar_Alignment\fR - the alignment for tabs in a QTabWidget. Possible values are Qt::AlignLeft, Qt::AlignCenter and Qt::AlignRight.
\fCQStyle::SH_TabBar_Alignment\fR - the alignment for tabs in a QTabWidget. Possible values are TQt::AlignLeft, TQt::AlignCenter and TQt::AlignRight.
.TP
\fCQStyle::SH_Header_ArrowAlignment\fR - the placement of the sorting indicator may appear in list or table headers. Possible values are Qt::Left or Qt::Right.
\fCQStyle::SH_Header_ArrowAlignment\fR - the placement of the sorting indicator may appear in list or table headers. Possible values are TQt::Left or TQt::Right.
.TP
\fCQStyle::SH_Slider_SnapToValue\fR - sliders snap to values while moving, like Windows
.TP
@ -546,7 +546,7 @@ This enum represents a StyleHint. A StyleHint is a general look and/or feel hint
.TP
\fCQStyle::SH_ProgressDialog_CenterCancelButton\fR - center button on progress dialogs, like Motif, otherwise right aligned.
.TP
\fCQStyle::SH_ProgressDialog_TextLabelAlignment\fR - Qt::AlignmentFlags -- text label alignment in progress dialogs; Center on windows, Auto|VCenter otherwise.
\fCQStyle::SH_ProgressDialog_TextLabelAlignment\fR - TQt::AlignmentFlags -- text label alignment in progress dialogs; Center on windows, Auto|VCenter otherwise.
.TP
\fCQStyle::SH_PrintDialog_RightAlignButtons\fR - right align buttons in the print dialog, like Windows.
.TP
@ -876,7 +876,7 @@ The rect \fIr\fR should be in screen coordinates.
Draws the \fItext\fR or \fIpixmap\fR in rectangle \fIr\fR using painter \fIp\fR and color group \fIg\fR. The pen color is specified with \fIpenColor\fR. The \fIenabled\fR bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn. If \fIlen\fR is -1 (the default) all the \fItext\fR is drawn; otherwise only the first \fIlen\fR characters of \fItext\fR are drawn. The text is aligned and wrapped according to the alignment \fIflags\fR (see Qt::AlignmentFlags).
Draws the \fItext\fR or \fIpixmap\fR in rectangle \fIr\fR using painter \fIp\fR and color group \fIg\fR. The pen color is specified with \fIpenColor\fR. The \fIenabled\fR bool indicates whether or not the item is enabled; when reimplementing this bool should influence how the item is drawn. If \fIlen\fR is -1 (the default) all the \fItext\fR is drawn; otherwise only the first \fIlen\fR characters of \fItext\fR are drawn. The text is aligned and wrapped according to the alignment \fIflags\fR (see TQt::AlignmentFlags).
.PP
By default, if both the text and the pixmap are not null, the pixmap is drawn and the text is ignored.
.SH "QRect QStyle::itemRect ( QPainter * p, const QRect & r, int flags, bool enabled, const QPixmap * pixmap, const TQString & text, int len = -1 ) const\fC [virtual]\fR"
Returns the appropriate area (see below) within rectangle \fIr\fR in which to draw the \fItext\fR or \fIpixmap\fR using painter \fIp\fR. If \fIlen\fR is -1 (the default) all the \fItext\fR is drawn; otherwise only the first \fIlen\fR characters of \fItext\fR are drawn. The text is aligned in accordance with the alignment \fIflags\fR (see Qt::AlignmentFlags). The \fIenabled\fR bool indicates whether or not the item is enabled.
Returns the appropriate area (see below) within rectangle \fIr\fR in which to draw the \fItext\fR or \fIpixmap\fR using painter \fIp\fR. If \fIlen\fR is -1 (the default) all the \fItext\fR is drawn; otherwise only the first \fIlen\fR characters of \fItext\fR are drawn. The text is aligned in accordance with the alignment \fIflags\fR (see TQt::AlignmentFlags). The \fIenabled\fR bool indicates whether or not the item is enabled.
.PP
If \fIr\fR is larger than the area needed to render the \fItext\fR the rectangle that is returned will be offset within \fIr\fR in accordance with the alignment \fIflags\fR. For example if \fIflags\fR is AlignCenter the returned rectangle will be centered within \fIr\fR. If \fIr\fR is smaller than the area needed the rectangle that is returned will be \fIlarger\fR than \fIr\fR (the smallest rectangle large enough to render the \fItext\fR or \fIpixmap\fR).
@ -260,7 +260,7 @@ Destroys the style. Note that QStyleSheetItem objects become owned by QStyleShee
.SH "int QStyleSheetItem::alignment () const"
Returns the alignment of this style. Possible values are AlignAuto, AlignLeft, AlignRight, AlignCenter or AlignJustify.
.PP
See also setAlignment() and Qt::AlignmentFlags.
See also setAlignment() and TQt::AlignmentFlags.
.SH "bool QStyleSheetItem::allowedInContext ( const QStyleSheetItem * s ) const"
Returns TRUE if this style can be nested into an element of style \fIs\fR; otherwise returns FALSE.
.PP
@ -358,7 +358,7 @@ See also setSelfNesting().
.SH "void QStyleSheetItem::setAlignment ( int f )"
Sets the alignment to \fIf\fR. This only makes sense for styles with a display mode of DisplayBlock. Possible values are AlignAuto, AlignLeft, AlignRight, AlignCenter or AlignJustify.
.PP
See also alignment(), displayMode(), and Qt::AlignmentFlags.
See also alignment(), displayMode(), and TQt::AlignmentFlags.
If \fIanc\fR is TRUE, sets this style to be an anchor (hypertext link); otherwise sets it to not be an anchor. Elements in this style link to other documents or anchors.
@ -127,7 +127,7 @@ However, you may occasionally need to say \fCQt::black\fR instead of just \fCbla
.PP
See also Miscellaneous Classes.
.SS "Member Type Documentation"
.SH "Qt::AlignmentFlags"
.SH "TQt::AlignmentFlags"
This enum type is used to describe alignment. It contains horizontal and vertical flags.
.PP
The horizontal flags are:
@ -163,13 +163,13 @@ Masks:
\fCQt::AlignVertical_Mask\fR
.PP
Conflicting combinations of flags have undefined meanings.
.SH "Qt::AnchorAttribute"
.SH "TQt::AnchorAttribute"
An anchor has one or more of the following attributes:
.TP
\fCQt::AnchorName\fR - the name attribute of the anchor. This attribute is used when scrolling to an anchor in the document.
.TP
\fCQt::AnchorHref\fR - the href attribute of the anchor. This attribute is used when a link is clicked to determine what content to load.
.SH "Qt::ArrowType"
.SH "TQt::ArrowType"
.TP
\fCQt::UpArrow\fR
.TP
@ -178,13 +178,13 @@ An anchor has one or more of the following attributes:
\fCQt::LeftArrow\fR
.TP
\fCQt::RightArrow\fR
.SH "Qt::BGMode"
.SH "TQt::BGMode"
Background mode
.TP
\fCQt::TransparentMode\fR
.TP
\fCQt::OpaqueMode\fR
.SH "Qt::BackgroundMode"
.SH "TQt::BackgroundMode"
This enum describes how the background of a widget changes, as the widget's palette changes.
.PP
The background is what the widget contains when paintEvent() is called. To minimize flicker, this should be the most common color or pixmap in the widget. For PaletteBackground, use colorGroup().brush( QColorGroup::Background ), and so on.
@ -234,7 +234,7 @@ The final three values have special meaning:
Although FixedColor and FixedPixmap are sometimes just right, if you use them, make sure that you test your application when the desktop color scheme has been changed. (On X11, a quick way to test this is e.g. "./myapp -bg paleblue". On Windows, you must use the control panel.)
.PP
See also TQWidget::backgroundMode, TQWidget::backgroundMode, TQWidget::setBackgroundPixmap(), and TQWidget::paletteBackgroundColor.
.SH "Qt::BrushStyle"
.SH "TQt::BrushStyle"
.TP
\fCQt::NoBrush\fR
.TP
@ -273,7 +273,7 @@ See also TQWidget::backgroundMode, TQWidget::backgroundMode, TQWidget::setBackgr
.B "[Image Omitted]"
.PP
</center>
.SH "Qt::ButtonState"
.SH "TQt::ButtonState"
This enum type describes the state of the mouse and the modifier buttons.
.TP
\fCQt::NoButton\fR - used when the button state does not refer to any button (see QMouseEvent::button()).
@ -297,7 +297,7 @@ This enum type describes the state of the mouse and the modifier buttons.
\fCQt::KeyButtonMask\fR - a mask for ShiftButton, ControlButton, AltButton and MetaButton.
.TP
\fCQt::MouseButtonMask\fR - a mask for LeftButton, RightButton and MidButton.
.SH "Qt::Corner"
.SH "TQt::Corner"
This enum type specifies a corner in a rectangle:
.TP
\fCQt::TopLeft\fR - top left corner
@ -307,7 +307,7 @@ This enum type specifies a corner in a rectangle:
\fCQt::BottomLeft\fR - bottom left corner
.TP
\fCQt::BottomRight\fR - bottom right corner
.SH "Qt::CursorShape"
.SH "TQt::CursorShape"
This enum type defines the various cursors that can be used.
.TP
\fCQt::ArrowCursor\fR - standard arrow cursor
@ -353,14 +353,14 @@ ArrowCursor is the default for widgets in a normal state.
.B "[Image Omitted]"
.PP
</center>
.SH "Qt::DateFormat"
.SH "TQt::DateFormat"
.TP
\fCQt::TextDate\fR - (default) TQt format
.TP
\fCQt::ISODate\fR - ISO 8601 extended format (YYYY-MM-DD, or with time, YYYY-MM-DDTHH:MM:SS)
.TP
\fCQt::LocalDate\fR - locale dependent format
.SH "Qt::Dock"
.SH "TQt::Dock"
Each dock window can be in one of the following positions:
.TP
\fCQt::DockTop\fR - above the central widget, below the menu bar.
@ -376,7 +376,7 @@ Each dock window can be in one of the following positions:
\fCQt::DockTornOff\fR - the dock window floats as its own top level window which always stays on top of the main window.
.TP
\fCQt::DockUnmanaged\fR - not managed by a QMainWindow.
.SH "Qt::GUIStyle"
.SH "TQt::GUIStyle"
\fBThis type is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.TP
\fCQt::WindowsStyle\fR
@ -388,7 +388,7 @@ Each dock window can be in one of the following positions:
\fCQt::Win3Style\fR
.TP
\fCQt::PMStyle\fR
.SH "Qt::ImageConversionFlags"
.SH "TQt::ImageConversionFlags"
The conversion flag is a bitwise-OR of the following values. The options marked "(default)" are set if no other values from the list are included (since the defaults are zero):
.PP
Color/Mono preference (ignored for QBitmap)
@ -436,7 +436,7 @@ The following are not values that are used directly, but masks for the above cla
\fCQt::DitherMode_Mask\fR - Mask for the mode that determines the preference of color matching versus dithering.
.PP
Using 0 as the conversion flag sets all the default options.
.SH "Qt::Key"
.SH "TQt::Key"
The key names used by Qt.
.TP
\fCQt::Key_Escape\fR
@ -1006,7 +1006,7 @@ Multimedia keys
\fCQt::Key_Direction_L\fR - internal use only
.TP
\fCQt::Key_Direction_R\fR - internal use only
.SH "Qt::MacintoshVersion"
.SH "TQt::MacintoshVersion"
.TP
\fCQt::MV_Unknown\fR - Version cannot be detected
.TP
@ -1031,7 +1031,7 @@ Multimedia keys
\fCQt::MV_PANTHER\fR - 10.3 Codename
.TP
\fCQt::MV_TIGER\fR - 10.4 Codename
.SH "Qt::Modifier"
.SH "TQt::Modifier"
This enum type describes the keyboard modifier keys supported by Qt.
.TP
\fCQt::SHIFT\fR - the Shift keys provided on all standard keyboards.
@ -1045,7 +1045,7 @@ This enum type describes the keyboard modifier keys supported by Qt.
\fCQt::MODIFIER_MASK\fR - is a mask of Shift, Ctrl, Alt and Meta.
.TP
\fCQt::UNICODE_ACCEL\fR - the accelerator is specified as a Unicode code point, not as a TQt Key.
.SH "Qt::Orientation"
.SH "TQt::Orientation"
This type is used to signify an object's orientation.
.TP
\fCQt::Horizontal\fR
@ -1053,7 +1053,7 @@ This type is used to signify an object's orientation.
\fCQt::Vertical\fR
.PP
Orientation is used with QScrollBar for example.
.SH "Qt::PaintUnit"
.SH "TQt::PaintUnit"
.TP
\fCQt::PixelUnit\fR
.TP
@ -1066,7 +1066,7 @@ Orientation is used with QScrollBar for example.
\fCQt::HiEnglishUnit\fR - \fIobsolete\fR
.TP
\fCQt::TwipsUnit\fR - \fIobsolete\fR
.SH "Qt::PenCapStyle"
.SH "TQt::PenCapStyle"
This enum type defines the pen cap styles supported by Qt, i.e. the line end caps that can be drawn using QPainter.
.TP
\fCQt::FlatCap\fR - a square line end that does not cover the end point of the line.
@ -1082,7 +1082,7 @@ This enum type defines the pen cap styles supported by Qt, i.e. the line end cap
.B "[Image Omitted]"
.PP
</center>
.SH "Qt::PenJoinStyle"
.SH "TQt::PenJoinStyle"
This enum type defines the pen join styles supported by Qt, i.e. which joins between two connected lines can be drawn using QPainter.
.TP
\fCQt::MiterJoin\fR - The outer edges of the lines are extended to meet at an angle, and this area is filled.
@ -1098,7 +1098,7 @@ This enum type defines the pen join styles supported by Qt, i.e. which joins bet
.B "[Image Omitted]"
.PP
</center>
.SH "Qt::PenStyle"
.SH "TQt::PenStyle"
This enum type defines the pen styles that can be drawn using QPainter. The styles are
.TP
\fCQt::NoPen\fR - no line at all. For example, QPainter::drawRect() fills but does not draw any boundary line.
@ -1120,7 +1120,7 @@ This enum type defines the pen styles that can be drawn using QPainter. The styl
.B "[Image Omitted]"
.PP
</center>
.SH "Qt::RasterOp"
.SH "TQt::RasterOp"
This enum type is used to describe the way things are written to the paint device. Each bit of the \fIsrc\fR (what you write) interacts with the corresponding bit of the \fIdst\fR pixel.
.TP
\fCQt::CopyROP\fR - dst = src
@ -1162,20 +1162,20 @@ This enum type is used to describe the way things are written to the paint devic
By far the most useful ones are CopyROP and XorROP.
.PP
On Qt/Embedded, only CopyROP, XorROP, and NotROP are supported.
.SH "Qt::SequenceMatch"
.SH "TQt::SequenceMatch"
.TP
\fCQt::NoMatch\fR - Sequences have nothing in common
.TP
\fCQt::PartialMatch\fR - Sequences match partially, but are not complete
.TP
\fCQt::Identical\fR - Sequences do not differ
.SH "Qt::SortOrder"
.SH "TQt::SortOrder"
This enum describes how the items in a widget are sorted.
.TP
\fCQt::Ascending\fR - The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales
.TP
\fCQt::Descending\fR - The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales
.SH "Qt::StringComparisonMode"
.SH "TQt::StringComparisonMode"
This enum type is used to set the string comparison mode when searching for an item. It is used by QListBox, QListView and QIconView, for example. We'll refer to the string being searched as the 'target' string.
.TP
\fCQt::CaseSensitive\fR - The strings must match case sensitively.
@ -1191,7 +1191,7 @@ This enum type is used to set the string comparison mode when searching for an i
If you OR these flags together (excluding CaseSensitive), the search criteria be applied in the following order: ExactMatch, BeginsWith, EndsWith, Contains.
.PP
Matching is case-insensitive unless CaseSensitive is set. CaseSensitive can be OR-ed with any combination of the other flags.
.SH "Qt::TextFlags"
.SH "TQt::TextFlags"
This enum type is used to define some modifier flags. Some of these flags only make sense in the context of printing:
.TP
\fCQt::SingleLine\fR - Treats all whitespace as spaces and prints just one line.
@ -1211,7 +1211,7 @@ This enum type is used to define some modifier flags. Some of these flags only m
You can use as many modifier flags as you want, except that SingleLine and WordBreak cannot be combined.
.PP
Flags that are inappropriate for a given use (e.g. ShowPrefix to QGridLayout::addWidget()) are generally ignored.
.SH "Qt::TextFormat"
.SH "TQt::TextFormat"
This enum is used in widgets that can display both plain text and rich text, e.g. QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a setTextFormat() function.
.TP
\fCQt::PlainText\fR - The text string is interpreted as a plain text string.
@ -1221,12 +1221,12 @@ This enum is used in widgets that can display both plain text and rich text, e.g
\fCQt::AutoText\fR - The text string is interpreted as for RichText if QStyleSheet::mightBeRichText() returns TRUE, otherwise as PlainText.
.TP
\fCQt::LogText\fR - A special, limited text format which is only used by QTextEdit in an optimized mode.
.SH "Qt::TimeSpec"
.SH "TQt::TimeSpec"
.TP
\fCQt::LocalTime\fR - Locale dependent time (Timezones and Daylight Savings Time)
.TP
\fCQt::UTC\fR - Coordinated Universal Time, replaces Greenwich Time
.SH "Qt::UIEffect"
.SH "TQt::UIEffect"
.TP
\fCQt::UI_General\fR
.TP
@ -1241,7 +1241,7 @@ This enum is used in widgets that can display both plain text and rich text, e.g
\fCQt::UI_FadeTooltip\fR
.TP
\fCQt::UI_AnimateToolBox\fR - Reserved
.SH "Qt::WidgetFlags"
.SH "TQt::WidgetFlags"
.PP
This enum type is used to specify various window-system properties for the widget. They are fairly unusual but necessary in a few cases. Some of these flags depend on whether the underlying window manager supports them. (See the toplevel example for an explanation and example of their use.)
@ -1337,7 +1337,7 @@ Internal flags.
\fCQt::WStyle_Mask\fR
.TP
\fCQt::WType_Mask\fR
.SH "Qt::WidgetState"
.SH "TQt::WidgetState"
Internal flags.
.TP
\fCQt::WState_Created\fR
@ -1389,7 +1389,7 @@ Internal flags.
\fCQt::WState_OwnSizePolicy\fR
.TP
\fCQt::WState_FullScreen\fR
.SH "Qt::WindowState"
.SH "TQt::WindowState"
.PP
This enum type is used to specify the current state of a top-level window.
@ -1405,7 +1405,7 @@ The states are
\fCQt::WindowFullScreen\fR - The window fills the entire screen without any frame around it.
.TP
\fCQt::WindowActive\fR - The window is the active window, i.e. it has keyboard focus.
@ -596,13 +596,13 @@ Creates an empty table object called \fIname\fR as a child of \fIparent\fR.
.PP
Call setNumRows() and setNumCols() to set the table size before populating the table if you're using QTableItems.
.PP
See also TQWidget::clearWFlags() and Qt::WidgetFlags.
See also TQWidget::clearWFlags() and TQt::WidgetFlags.
.SH "QTable::QTable ( int numRows, int numCols, TQWidget * parent = 0, const char * name = 0 )"
Constructs an empty table called \fIname\fR with \fInumRows\fR rows and \fInumCols\fR columns. The table is a child of \fIparent\fR.
.PP
If you're using QTableItems to populate the table's cells, you can create QTableItem, QComboTableItem and QCheckTableItem items and insert them into the table using setItem(). (See the notes on large tables for an alternative to using QTableItems.)
.PP
See also TQWidget::clearWFlags() and Qt::WidgetFlags.
See also TQWidget::clearWFlags() and TQt::WidgetFlags.
.SH "QTable::~QTable ()"
Releases all the resources used by the QTable object, including all QTableItems and their widgets.
.SH "void QTable::clicked ( int row, int col, int button, const QPoint & mousePos )\fC [signal]\fR"
This signal is emitted when mouse button \fIbutton\fR is clicked. The cell where the event took place is at \fIrow\fR, \fIcol\fR, and the mouse's position is in \fImousePos\fR.
.PP
See also Qt::ButtonState.
See also TQt::ButtonState.
.PP
Example: chart/setdataform.cpp.
.SH "int QTable::columnAt ( int x ) const\fC [virtual]\fR"
@ -773,7 +773,7 @@ See also numSelections.
.SH "void QTable::doubleClicked ( int row, int col, int button, const QPoint & mousePos )\fC [signal]\fR"
This signal is emitted when mouse button \fIbutton\fR is double-clicked. The cell where the event took place is at \fIrow\fR, \fIcol\fR, and the mouse's position is in \fImousePos\fR.
.SH "void QTable::pressed ( int row, int col, int button, const QPoint & mousePos )\fC [signal]\fR"
This signal is emitted when mouse button \fIbutton\fR is pressed. The cell where the event took place is at \fIrow\fR, \fIcol\fR, and the mouse's position is in \fImousePos\fR.
.PP
See also Qt::ButtonState.
See also TQt::ButtonState.
.SH "void QTable::removeColumn ( int col )\fC [virtual slot]\fR"
Removes column \fIcol\fR, and deletes all its cells including any table items and widgets the cells may contain. Also clears the selection(s).
The alignment function returns how the text contents of the cell are aligned when drawn. The default implementation aligns numbers to the right and any other text to the left.
.PP
See also Qt::AlignmentFlags.
See also TQt::AlignmentFlags.
.SH "int QTableItem::col () const"
Returns the column where the table item is located. If the cell spans multiple columns, this function returns the left-most column.
@ -555,7 +555,7 @@ QTextEdit can display images (using QMimeSourceFactory), lists and tables. If th
.PP
If you want a text browser with more navigation use QTextBrowser. If you just need to display a small piece of rich text use QLabel or QSimpleRichText.
.PP
If you create a new QTextEdit, and want to allow the user to edit rich text, call setTextFormat(Qt::RichText) to ensure that the text is treated as rich text. (Rich text uses HTML tags to set text formatting attributes. See QStyleSheet for information on the HTML tags that are supported.). If you don't call setTextFormat() explicitly the text edit will guess from the text itself whether it is rich text or plain text. This means that if the text looks like HTML or XML it will probably be interpreted as rich text, so you should call setTextFormat(Qt::PlainText) to preserve such text.
If you create a new QTextEdit, and want to allow the user to edit rich text, call setTextFormat(TQt::RichText) to ensure that the text is treated as rich text. (Rich text uses HTML tags to set text formatting attributes. See QStyleSheet for information on the HTML tags that are supported.). If you don't call setTextFormat() explicitly the text edit will guess from the text itself whether it is rich text or plain text. This means that if the text looks like HTML or XML it will probably be interpreted as rich text, so you should call setTextFormat(TQt::PlainText) to preserve such text.
.PP
Note that we do not intend to add a full-featured web browser widget to TQt (because that would easily double Qt's size and only a few applications would benefit from it). The rich text support in TQt is designed to provide a fast, portable and efficient way to add reasonable online help facilities to applications, and to provide a basis for rich text editors.
.SH "Using QTextEdit as a Display Widget"
@ -639,7 +639,7 @@ Stylesheets can also be used in LogText mode. To create and use a custom tag, yo
.br
QTextEdit * log = new QTextEdit( this );
.br
log->setTextFormat( Qt::LogText );
log->setTextFormat( TQt::LogText );
.br
QStyleSheetItem * item = new QStyleSheetItem( log->styleSheet(), "mytag" );
.br
@ -1089,7 +1089,7 @@ This signal is emitted whenever the selection changes.
.PP
See also setSelection() and copyAvailable().
.SH "void QTextEdit::setAlignment ( int a )\fC [virtual slot]\fR"
Sets the alignment of the current paragraph to \fIa\fR. Valid alignments are Qt::AlignLeft, Qt::AlignRight, Qt::AlignJustify and Qt::AlignCenter (which centers horizontally).
Sets the alignment of the current paragraph to \fIa\fR. Valid alignments are TQt::AlignLeft, TQt::AlignRight, TQt::AlignJustify and TQt::AlignCenter (which centers horizontally).
.PP
Reimplemented in QMultiLineEdit.
.SH "void QTextEdit::setAutoFormatting ( uint features )"
@ -156,7 +156,7 @@ If \fIstackSize\fR is greater than zero, the maximum stack size is set to \fIsta
QThread destructor.
.PP
Note that deleting a QThread object will not stop the execution of the thread it represents. Deleting a running QThread (i.e. finished() returns FALSE) will probably result in a program crash. You can wait() on a thread to make sure that it has finished.
This returns the thread handle of the currently executing thread.
.PP
\fBWarning:\fR The handle returned by this function is used for internal purposes and should \fInot\fR be used in any application code. On Windows, the returned value is a pseudo handle for the current thread, and it cannot be used for numerical comparison.
Returns the current time as reported by the system clock, for the TimeSpec \fIts\fR. The default TimeSpec is LocalTime.
.PP
Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy.
.PP
See also Qt::TimeSpec.
See also TQt::TimeSpec.
.PP
Examples:
.)l aclock/aclock.cpp, dclock/dclock.cpp, t12/cannon.cpp, and tictac/tictac.cpp.
@ -196,10 +196,10 @@ Note that the accuracy depends on the accuracy of the underlying operating syste
\fBWarning:\fR If the system's clock setting has been changed since the last time start() or restart() was called, the result is undefined. This can happen when daylight savings time is turned on or off.
Returns the variant as a QDateTime if the variant can be cast to DateTime; otherwise returns an invalid QDateTime.
.PP
Note that if the type() is String, CString or ByteArray an invalid QDateTime will be returned if the string cannot be parsed as a Qt::ISODate format date/time.
Note that if the type() is String, CString or ByteArray an invalid QDateTime will be returned if the string cannot be parsed as a TQt::ISODate format date/time.
@ -1139,7 +1139,7 @@ If \fIparent\fR is 0, the new widget becomes a top-level window. If \fIparent\fR
.PP
The \fIname\fR is sent to the TQObject constructor.
.PP
The widget flags argument, \fIf\fR, is normally 0, but it can be set to customize the window frame of a top-level widget (i.e. \fIparent\fR must be 0). To customize the frame, set the WStyle_Customize flag OR'ed with any of the Qt::WidgetFlags.
The widget flags argument, \fIf\fR, is normally 0, but it can be set to customize the window frame of a top-level widget (i.e. \fIparent\fR must be 0). To customize the frame, set the WStyle_Customize flag OR'ed with any of the TQt::WidgetFlags.
.PP
If you add a child widget to an already visible widget you must explicitly show the child to make it visible.
.PP
@ -1218,7 +1218,7 @@ See also setMask().
.SH "void TQWidget::clearWFlags ( WFlags f )\fC [protected]\fR"
Clears the widget flags \fIf\fR.
.PP
Widget flags are a combination of Qt::WidgetFlags.
Widget flags are a combination of TQt::WidgetFlags.
.PP
See also testWFlags(), getWFlags(), and setWFlags().
.SH "QRegion TQWidget::clipRegion () const"
@ -1469,7 +1469,7 @@ Returns the geometry of the widget relative to its parent and excluding the wind
Causes only the pixels of the widget for which \fIbitmap\fR has a corresponding 1 bit to be visible. Use Qt::color0 to draw transparent regions and Qt::color1 to draw opaque regions of the bitmap.
Causes only the pixels of the widget for which \fIbitmap\fR has a corresponding 1 bit to be visible. Use TQt::color0 to draw transparent regions and TQt::color1 to draw opaque regions of the bitmap.
.PP
If the region includes pixels outside the rect() of the widget, window system controls in that area may or may not be visible, depending on the platform.
.PP
@ -2259,13 +2259,13 @@ Sets whether updates are enabled to \fIenable\fR. See the "updatesEnabled" prope
.SH "void TQWidget::setWFlags ( WFlags f )\fC [virtual protected]\fR"
Sets the widget flags \fIf\fR.
.PP
Widget flags are a combination of Qt::WidgetFlags.
Widget flags are a combination of TQt::WidgetFlags.
.PP
See also testWFlags(), getWFlags(), and clearWFlags().
Sets the window state to \fIwindowState\fR. The window state is a OR'ed combination of Qt::WindowState: WindowMinimized, WindowMaximized, WindowFullScreen and WindowActive.
Sets the window state to \fIwindowState\fR. The window state is a OR'ed combination of TQt::WindowState: WindowMinimized, WindowMaximized, WindowFullScreen and WindowActive.
.PP
If the window is not visible (i.e. isVisible() returns FALSE), the window state will take effect when show() is called. For visible windows, the change is immediate. For example, to toggle between full-screen and mormal mode, use the following code:
.PP
@ -2285,7 +2285,7 @@ In order to restore and activate a minimized window (while preserving its maximi
.PP
Note: On some window systems WindowActive is not immediate, and may be ignored in certain cases.
.PP
See also Qt::WindowState and windowState().
See also TQt::WindowState and windowState().
.SH "void TQWidget::show ()\fC [virtual slot]\fR"
Shows the widget and its child widgets.
.PP
@ -2385,7 +2385,7 @@ See also QTabletEvent::ignore(), QTabletEvent::accept(), event(), and QTabletEve
.SH "WFlags TQWidget::testWFlags ( WFlags f ) const"
Returns the bitwise AND of the widget flags and \fIf\fR.
.PP
Widget flags are a combination of Qt::WidgetFlags.
Widget flags are a combination of TQt::WidgetFlags.
.PP
If you want to test for the presence of multiple flags (or composite flags such as WStyle_Splash), test the return value for equality against the argument. For example:
.PP
@ -2506,9 +2506,9 @@ See also setActiveWindow(), isActiveWindow, update(), and palette.
.SH "double TQWidget::windowOpacity () const"
Returns the level of opacity for the window. See the "windowOpacity" property for details.
.SH "uint TQWidget::windowState () const"
Returns the current window state. The window state is a OR'ed combination of Qt::WindowState: WindowMinimized, WindowMaximized, WindowFullScreen and WindowActive.
Returns the current window state. The window state is a OR'ed combination of TQt::WindowState: WindowMinimized, WindowMaximized, WindowFullScreen and WindowActive.
.PP
See also Qt::WindowState and setWindowState().
See also TQt::WindowState and setWindowState().
.SH "int TQWidget::x () const"
Returns the x coordinate of the widget relative to its parent including any window frame. See the "x" property for details.
@ -46,7 +46,7 @@ Subclasses call this function to send a key event. The server may additionally f
.PP
<center>.nf
.TS
l - l. Parameter Meaning \fIunicode\fR The Unicode value for the key, or 0xFFFF is none is appropriate. \fIkeycode\fR The TQt keycode for the key (see Qt::Key for the list of codes). \fImodifiers\fR The set of modifier keys (see Qt::Modifier). \fIisPress\fR Whether this is a press or a release. \fIautoRepeat\fR
l - l. Parameter Meaning \fIunicode\fR The Unicode value for the key, or 0xFFFF is none is appropriate. \fIkeycode\fR The TQt keycode for the key (see TQt::Key for the list of codes). \fImodifiers\fR The set of modifier keys (see TQt::Modifier). \fIisPress\fR Whether this is a press or a release. \fIautoRepeat\fR