<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>TQWidget Class Reference</h1>
<p>The TQWidget class is the base class of all user interface objects.
<liclass=fn>bool <ahref="#acceptDrops-prop"><b>acceptDrops</b></a> - whether drop events are enabled for this widget</li>
<liclass=fn>bool <ahref="#autoMask-prop"><b>autoMask</b></a> - whether the auto mask feature is enabled for the widget</li>
<liclass=fn>TQBrush <ahref="#backgroundBrush-prop"><b>backgroundBrush</b></a> - the widget's background brush <em>(read only)</em></li>
<liclass=fn>BackgroundMode <ahref="#backgroundMode-prop"><b>backgroundMode</b></a> - the color role used for painting the background of the widget</li>
<liclass=fn>BackgroundOrigin <ahref="#backgroundOrigin-prop"><b>backgroundOrigin</b></a> - the origin of the widget's background</li>
<liclass=fn>TQSize <ahref="#baseSize-prop"><b>baseSize</b></a> - the base size of the widget</li>
<liclass=fn>TQString <ahref="#caption-prop"><b>caption</b></a> - the window caption (title)</li>
<liclass=fn>TQRect <ahref="#childrenRect-prop"><b>childrenRect</b></a> - the bounding rectangle of the widget's children <em>(read only)</em></li>
<liclass=fn>TQRegion <ahref="#childrenRegion-prop"><b>childrenRegion</b></a> - the combined region occupied by the widget's children <em>(read only)</em></li>
<liclass=fn>TQColorGroup <ahref="#colorGroup-prop"><b>colorGroup</b></a> - the current color group of the widget palette <em>(read only)</em></li>
<liclass=fn>TQCursor <ahref="#cursor-prop"><b>cursor</b></a> - the cursor shape for this widget</li>
<liclass=fn>bool <ahref="#customWhatsThis-prop"><b>customWhatsThis</b></a> - whether the widget wants to handle What's This help manually <em>(read only)</em></li>
<liclass=fn>bool <ahref="#enabled-prop"><b>enabled</b></a> - whether the widget is enabled</li>
<liclass=fn>bool <ahref="#focus-prop"><b>focus</b></a> - whether this widget (or its focus proxy) has the keyboard input focus <em>(read only)</em></li>
<liclass=fn>bool <ahref="#focusEnabled-prop"><b>focusEnabled</b></a> - whether the widget accepts keyboard focus <em>(read only)</em></li>
<liclass=fn>FocusPolicy <ahref="#focusPolicy-prop"><b>focusPolicy</b></a> - the way the widget accepts keyboard focus</li>
<liclass=fn>TQFont <ahref="#font-prop"><b>font</b></a> - the font currently set for the widget</li>
<liclass=fn>TQRect <ahref="#frameGeometry-prop"><b>frameGeometry</b></a> - geometry of the widget relative to its parent including any window frame <em>(read only)</em></li>
<liclass=fn>TQSize <ahref="#frameSize-prop"><b>frameSize</b></a> - the size of the widget including any window frame <em>(read only)</em></li>
<liclass=fn>bool <ahref="#fullScreen-prop"><b>fullScreen</b></a> - whether the widget is full screen <em>(read only)</em></li>
<liclass=fn>TQRect <ahref="#geometry-prop"><b>geometry</b></a> - the geometry of the widget relative to its parent and excluding the window frame</li>
<liclass=fn>int <ahref="#height-prop"><b>height</b></a> - the height of the widget excluding any window frame <em>(read only)</em></li>
<liclass=fn>bool <ahref="#hidden-prop"><b>hidden</b></a> - whether the widget is explicitly hidden</li>
<liclass=fn>TQPixmap <ahref="#icon-prop"><b>icon</b></a> - the widget's icon</li>
<liclass=fn>TQString <ahref="#iconText-prop"><b>iconText</b></a> - the widget's icon text</li>
<liclass=fn>bool <ahref="#inputMethodEnabled-prop"><b>inputMethodEnabled</b></a> - enables or disables the use of input methods for this widget</li>
<liclass=fn>bool <ahref="#isActiveWindow-prop"><b>isActiveWindow</b></a> - whether this widget is the active window <em>(read only)</em></li>
<liclass=fn>bool <ahref="#isDesktop-prop"><b>isDesktop</b></a> - whether the widget is a desktop widget, i.e. represents the desktop <em>(read only)</em></li>
<liclass=fn>bool <ahref="#isDialog-prop"><b>isDialog</b></a> - whether the widget is a dialog widget <em>(read only)</em></li>
<liclass=fn>bool <ahref="#isModal-prop"><b>isModal</b></a> - whether the widget is a modal widget <em>(read only)</em></li>
<liclass=fn>bool <ahref="#isPopup-prop"><b>isPopup</b></a> - whether the widget is a popup widget <em>(read only)</em></li>
<liclass=fn>bool <ahref="#isTopLevel-prop"><b>isTopLevel</b></a> - whether the widget is a top-level widget <em>(read only)</em></li>
<liclass=fn>bool <ahref="#maximized-prop"><b>maximized</b></a> - whether this widget is maximized <em>(read only)</em></li>
<liclass=fn>int <ahref="#maximumHeight-prop"><b>maximumHeight</b></a> - the widget's maximum height</li>
<liclass=fn>TQSize <ahref="#maximumSize-prop"><b>maximumSize</b></a> - the widget's maximum size</li>
<liclass=fn>int <ahref="#maximumWidth-prop"><b>maximumWidth</b></a> - the widget's maximum width</li>
<liclass=fn>TQRect <ahref="#microFocusHint-prop"><b>microFocusHint</b></a> - the currently set micro focus hint for this widget <em>(read only)</em></li>
<liclass=fn>bool <ahref="#minimized-prop"><b>minimized</b></a> - whether this widget is minimized (iconified) <em>(read only)</em></li>
<liclass=fn>int <ahref="#minimumHeight-prop"><b>minimumHeight</b></a> - the widget's minimum height</li>
<liclass=fn>TQSize <ahref="#minimumSize-prop"><b>minimumSize</b></a> - the widget's minimum size</li>
<liclass=fn>TQSize <ahref="#minimumSizeHint-prop"><b>minimumSizeHint</b></a> - the recommended minimum size for the widget <em>(read only)</em></li>
<liclass=fn>int <ahref="#minimumWidth-prop"><b>minimumWidth</b></a> - the widget's minimum width</li>
<liclass=fn>bool <ahref="#mouseTracking-prop"><b>mouseTracking</b></a> - whether mouse tracking is enabled for the widget</li>
<liclass=fn>bool <ahref="#ownCursor-prop"><b>ownCursor</b></a> - whether the widget uses its own cursor <em>(read only)</em></li>
<liclass=fn>bool <ahref="#ownFont-prop"><b>ownFont</b></a> - whether the widget uses its own font <em>(read only)</em></li>
<liclass=fn>bool <ahref="#ownPalette-prop"><b>ownPalette</b></a> - whether the widget uses its own palette <em>(read only)</em></li>
<liclass=fn>TQPalette <ahref="#palette-prop"><b>palette</b></a> - the widget's palette</li>
<liclass=fn>TQColor <ahref="#paletteBackgroundColor-prop"><b>paletteBackgroundColor</b></a> - the background color of the widget</li>
<liclass=fn>TQPixmap <ahref="#paletteBackgroundPixmap-prop"><b>paletteBackgroundPixmap</b></a> - the background pixmap of the widget</li>
<liclass=fn>TQColor <ahref="#paletteForegroundColor-prop"><b>paletteForegroundColor</b></a> - the foreground color of the widget</li>
<liclass=fn>TQPoint <ahref="#pos-prop"><b>pos</b></a> - the position of the widget within its parent widget</li>
<liclass=fn>TQRect <ahref="#rect-prop"><b>rect</b></a> - the internal geometry of the widget excluding any window frame <em>(read only)</em></li>
<liclass=fn>bool <ahref="#shown-prop"><b>shown</b></a> - whether the widget is shown</li>
<liclass=fn>TQSize <ahref="#size-prop"><b>size</b></a> - the size of the widget excluding any window frame</li>
<liclass=fn>TQSize <ahref="#sizeHint-prop"><b>sizeHint</b></a> - the recommended size for the widget <em>(read only)</em></li>
<liclass=fn>TQSize <ahref="#sizeIncrement-prop"><b>sizeIncrement</b></a> - the size increment of the widget</li>
<liclass=fn>TQSizePolicy <ahref="#sizePolicy-prop"><b>sizePolicy</b></a> - the default layout behavior of the widget</li>
<liclass=fn>bool <ahref="#underMouse-prop"><b>underMouse</b></a> - whether the widget is under the mouse cursor <em>(read only)</em></li>
<liclass=fn>bool <ahref="#updatesEnabled-prop"><b>updatesEnabled</b></a> - whether updates are enabled</li>
<liclass=fn>bool <ahref="#visible-prop"><b>visible</b></a> - whether the widget is visible <em>(read only)</em></li>
<liclass=fn>TQRect visibleRect - the visible rectangle <em>(read only)</em> <em>(obsolete)</em></li>
<liclass=fn>int <ahref="#width-prop"><b>width</b></a> - the width of the widget excluding any window frame <em>(read only)</em></li>
<liclass=fn>double <ahref="#windowOpacity-prop"><b>windowOpacity</b></a> - the level of opacity for the window</li>
<liclass=fn>int <ahref="#x-prop"><b>x</b></a> - the x coordinate of the widget relative to its parent including any window frame <em>(read only)</em></li>
<liclass=fn>int <ahref="#y-prop"><b>y</b></a> - the y coordinate of the widget relative to its parent and including any window frame <em>(read only)</em></li>
If not, it will be a child of <em>parent</em>, and be constrained by <em>parent</em>'s geometry (unless you specify <ahref="ntqt.html#WidgetFlags-enum">WType_TopLevel</a> as
<p><p>See also <ahref="ntqevent.html">TQEvent</a>, <ahref="ntqpainter.html">TQPainter</a>, <ahref="qgridlayout.html">TQGridLayout</a>, <ahref="qboxlayout.html">TQBoxLayout</a>, and <ahref="abstractwidgets.html">Abstract Widget Classes</a>.
to customize the window frame of a top-level widget (i.e. <em>parent</em> must be 0). To customize the frame, set the <ahref="ntqt.html#WidgetFlags-enum">WStyle_Customize</a> flag OR'ed with any of the <ahref="ntqt.html#WidgetFlags-enum">TQt::WidgetFlags</a>.
<p><p>See also <ahref="#focus-prop">focus</a>, <ahref="#setFocus">setFocus</a>(), <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, and <ahref="ntqapplication.html#focusWidget">TQApplication::focusWidget</a>().
<p> Closes this widget. Returns TRUE if the widget was closed;
otherwise returns FALSE.
<p> First it sends the widget a <ahref="qcloseevent.html">TQCloseEvent</a>. The widget is <ahref="#hide">hidden</a> if it <ahref="qcloseevent.html#accept">accepts</a> the close event. The default implementation of
<ahref="#closeEvent">TQWidget::closeEvent</a>() accepts the close event.
<p> If <em>alsoDelete</em> is TRUE or the widget has the <ahref="ntqt.html#WidgetFlags-enum">WDestructiveClose</a> widget flag, the widget is also deleted. The
<p><p>See also <ahref="#closeEvent">closeEvent</a>(), <ahref="qcloseevent.html">TQCloseEvent</a>, <ahref="#hide">hide</a>(), <ahref="ntqapplication.html#quit">TQApplication::quit</a>(), <ahref="ntqapplication.html#setMainWidget">TQApplication::setMainWidget</a>(), and <ahref="ntqapplication.html#lastWindowClosed">TQApplication::lastWindowClosed</a>().
This event handler is called when a drag is in progress and the
mouse enters this widget.
<p> See the <ahref="dnd.html">Drag-and-drop documentation</a> for an
overview of how to provide drag-and-drop in your application.
<p><p>See also <ahref="qtextdrag.html">TQTextDrag</a>, <ahref="qimagedrag.html">TQImageDrag</a>, and <ahref="qdragenterevent.html">TQDragEnterEvent</a>.
This event handler is called when a drag is in progress and the
mouse leaves this widget.
<p> See the <ahref="dnd.html">Drag-and-drop documentation</a> for an
overview of how to provide drag-and-drop in your application.
<p><p>See also <ahref="qtextdrag.html">TQTextDrag</a>, <ahref="qimagedrag.html">TQImageDrag</a>, and <ahref="qdragleaveevent.html">TQDragLeaveEvent</a>.
more flexible results and often higher speed by using a a <ahref="ntqpainter.html">painter</a> instead.
<p><p>See also <ahref="#font-prop">font</a>, <ahref="#foregroundColor">foregroundColor</a>(), and <ahref="ntqpainter.html#drawText">TQPainter::drawText</a>().
<p> This virtual function is called from <ahref="#setEnabled">setEnabled</a>(). <em>oldEnabled</em>
is the previous setting; you can get the new setting from
<ahref="#isEnabled">isEnabled</a>().
<p> Reimplement this function if your widget needs to know when it
becomes enabled or disabled. You will almost certainly need to
update the widget using <ahref="#update">update</a>().
<p> The default implementation repaints the visible part of the
widget.
<p><p>See also <ahref="#enabled-prop">enabled</a>, <ahref="#enabled-prop">enabled</a>, <ahref="#repaint">repaint</a>(), <ahref="#update">update</a>(), and <ahref="#clipRegion">clipRegion</a>().
<p><p>See also <ahref="#setEraseColor">setEraseColor</a>(), <ahref="#setErasePixmap">setErasePixmap</a>(), and <ahref="#backgroundColor">backgroundColor</a>().
This event handler can be reimplemented in a subclass to receive
<ahref="focus.html#keyboard-focus">keyboard focus</a> events (focus received) for the widget.
<p> A widget normally must <ahref="#setFocusPolicy">setFocusPolicy</a>() to something other than
<ahref="#FocusPolicy-enum">NoFocus</a> in order to receive focus events. (Note that the
application programmer can call <ahref="#setFocus">setFocus</a>() on any widget, even
those that do not normally accept focus.)
<p> The default implementation updates the widget (except for toplevel
widgets that do not specify a <ahref="#focusPolicy">focusPolicy</a>() ). It also calls
<ahref="#setMicroFocusHint">setMicroFocusHint</a>(), hinting any system-specific input tools about
the focus of the user's attention.
<p><p>See also <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), <ahref="#event">event</a>(), and <ahref="qfocusevent.html">TQFocusEvent</a>.
This event handler can be reimplemented in a subclass to receive
<ahref="focus.html#keyboard-focus">keyboard focus</a> events (focus lost) for the widget.
<p> A widget normally must <ahref="#setFocusPolicy">setFocusPolicy</a>() to something other than
<ahref="#FocusPolicy-enum">NoFocus</a> in order to receive focus events. (Note that the
application programmer can call <ahref="#setFocus">setFocus</a>() on any widget, even
those that do not normally accept focus.)
<p> The default implementation updates the widget (except for toplevel
widgets that do not specify a <ahref="#focusPolicy">focusPolicy</a>() ). It also calls
<ahref="#setMicroFocusHint">setMicroFocusHint</a>(), hinting any system-specific input tools about
the focus of the user's attention.
<p><p>See also <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), <ahref="#event">event</a>(), and <ahref="qfocusevent.html">TQFocusEvent</a>.
<p> This virtual function is called from <ahref="#setFont">setFont</a>(). <em>oldFont</em> is the
previous font; you can get the new font from <ahref="#font">font</a>().
<p> Reimplement this function if your widget needs to know when its
font changes. You will almost certainly need to update the widget
using <ahref="#update">update</a>().
<p> The default implementation updates the widget including its
geometry.
<p><p>See also <ahref="#font-prop">font</a>, <ahref="#font-prop">font</a>, <ahref="#update">update</a>(), and <ahref="#updateGeometry">updateGeometry</a>().
is called; other widgets get no keyboard events at all. Mouse
events are not affected. Use <ahref="#grabMouse">grabMouse</a>() if you want to grab that.
<p> The focus widget is not affected, except that it doesn't receive
any keyboard events. <ahref="#setFocus">setFocus</a>() moves the focus as usual, but the
new focus widget receives keyboard events only after
releaseKeyboard() is called.
<p> If a different widget is currently grabbing keyboard input, that
widget's grab is released first.
<p><p>See also <ahref="#releaseKeyboard">releaseKeyboard</a>(), <ahref="#grabMouse">grabMouse</a>(), <ahref="#releaseMouse">releaseMouse</a>(), and <ahref="#focusWidget">focusWidget</a>().
<p> This widget receives all mouse events until <ahref="#releaseMouse">releaseMouse</a>() is
called; other widgets get no mouse events at all. Keyboard
events are not affected. Use <ahref="#grabKeyboard">grabKeyboard</a>() if you want to grab
that.
<p><b>Warning:</b> Bugs in mouse-grabbing applications very often lock the
terminal. Use this function with extreme caution, and consider
using the <tt>-nograb</tt> command line option while debugging.
<p> It is almost never necessary to grab the mouse when using TQt, as
TQt grabs and releases it sensibly. In particular, TQt grabs the
mouse when a mouse button is pressed and keeps it until the last
button is released.
<p> Note that only visible widgets can grab mouse input. If
<ahref="#isVisible">isVisible</a>() returns FALSE for a widget, that widget cannot call
<ahref="#grabMouse">grabMouse</a>().
<p><p>See also <ahref="#releaseMouse">releaseMouse</a>(), <ahref="#grabKeyboard">grabKeyboard</a>(), <ahref="#releaseKeyboard">releaseKeyboard</a>(), <ahref="#grabKeyboard">grabKeyboard</a>(), and <ahref="#focusWidget">focusWidget</a>().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Grabs the mouse input and changes the cursor shape.
<p> The cursor will assume shape <em>cursor</em> (for as long as the mouse
focus is grabbed) and this widget will be the only one to receive
mouse events until <ahref="#releaseMouse">releaseMouse</a>() is called().
<p><b>Warning:</b> Grabbing the mouse might lock the terminal.
<p><p>See also <ahref="#releaseMouse">releaseMouse</a>(), <ahref="#grabKeyboard">grabKeyboard</a>(), <ahref="#releaseKeyboard">releaseKeyboard</a>(), and <ahref="#cursor-prop">cursor</a>.
<p> You almost never have to reimplement this function. If you need to
do something after a widget is hidden, use <ahref="#hideEvent">hideEvent</a>() instead.
<p><p>See also <ahref="#hideEvent">hideEvent</a>(), <ahref="#hidden-prop">hidden</a>, <ahref="#show">show</a>(), <ahref="#showMinimized">showMinimized</a>(), <ahref="#visible-prop">visible</a>, and <ahref="#close">close</a>().
<p>Examples: <ahref="mdi-example.html#x2079">mdi/application.cpp</a>, <ahref="popup-example.html#x1619">popup/popup.cpp</a>, <ahref="progress-example.html#x89">progress/progress.cpp</a>, <ahref="scrollview-example.html#x658">scrollview/scrollview.cpp</a>, <ahref="qaxcontainer-example-webbrowser.html#x2516">webbrowser/mainwindow.ui.h</a>, and <ahref="xform-example.html#x1267">xform/xform.cpp</a>.
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive key press events for the widget.
<p> A widget must call <ahref="#setFocusPolicy">setFocusPolicy</a>() to accept focus initially and
have focus in order to receive a key press event.
<p> If you reimplement this handler, it is very important that you
explicitly <ahref="qkeyevent.html#ignore">ignore</a> the event
if you do not understand it, so that the widget's parent can
interpret it; otherwise, the event will be implicitly accepted.
Although top-level widgets are able to choose whether to accept
or ignore unknown events because they have no parent widgets that
could otherwise handle them, it is good practice to explicitly
ignore events to make widgets as reusable as possible.
<p> The default implementation closes popup widgets if the user
presses <b>Esc</b>. Otherwise the event is ignored.
<p><p>See also <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), <ahref="qkeyevent.html#ignore">TQKeyEvent::ignore</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#event">event</a>(), and <ahref="qkeyevent.html">TQKeyEvent</a>.
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive key release events for the widget.
<p> A widget must <ahref="#setFocusPolicy">accept focus</a>
initially and <ahref="#hasFocus">have focus</a> in order to
receive a key release event.
<p> If you reimplement this handler, it is very important that you
<ahref="qkeyevent.html">ignore()</a> the release if you do not
understand it, so that the widget's parent can interpret it.
<p> The default implementation ignores the event.
<p><p>See also <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="qkeyevent.html#ignore">TQKeyEvent::ignore</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#event">event</a>(), and <ahref="qkeyevent.html">TQKeyEvent</a>.
<p> Returns the layout engine that manages the geometry of this
widget's children.
<p> If the widget does not have a layout, <ahref="#layout">layout</a>() returns 0.
<p><p>See also <ahref="#sizePolicy-prop">sizePolicy</a>.
<p>Examples: <ahref="tutorial2-09.html#x2647">chart/optionsform.cpp</a> and <ahref="simple-font-demo-example.html#x2858">fonts/simple-qfont-demo/viewer.cpp</a>.
Translates the widget coordinate <em>pos</em> from the coordinate system
of <em>parent</em> to this widget's coordinate system. The <em>parent</em>
must not be 0 and must be a parent of the calling widget.
<p><p>See also <ahref="#mapTo">mapTo</a>(), <ahref="#mapFromParent">mapFromParent</a>(), <ahref="#mapFromGlobal">mapFromGlobal</a>(), and <ahref="#underMouse-prop">underMouse</a>.
Translates the parent widget coordinate <em>pos</em> to widget
coordinates.
<p> Same as <ahref="#mapFromGlobal">mapFromGlobal</a>() if the widget has no parent.
<p><p>See also <ahref="#mapToParent">mapToParent</a>(), <ahref="#mapFrom">mapFrom</a>(), <ahref="#mapFromGlobal">mapFromGlobal</a>(), and <ahref="#underMouse-prop">underMouse</a>.
Translates the widget coordinate <em>pos</em> to the coordinate system
of <em>parent</em>. The <em>parent</em> must not be 0 and must be a parent
of the calling widget.
<p><p>See also <ahref="#mapFrom">mapFrom</a>(), <ahref="#mapToParent">mapToParent</a>(), <ahref="#mapToGlobal">mapToGlobal</a>(), and <ahref="#underMouse-prop">underMouse</a>.
Translates the widget coordinate <em>pos</em> to a coordinate in the
parent widget.
<p> Same as <ahref="#mapToGlobal">mapToGlobal</a>() if the widget has no parent.
<p><p>See also <ahref="#mapFromParent">mapFromParent</a>(), <ahref="#mapTo">mapTo</a>(), <ahref="#mapToGlobal">mapToGlobal</a>(), and <ahref="#underMouse-prop">underMouse</a>.
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive mouse double click events for the widget.
<p> The default implementation generates a normal mouse press event.
<p> Note that the widgets gets a <ahref="#mousePressEvent">mousePressEvent</a>() and a
<ahref="#mouseReleaseEvent">mouseReleaseEvent</a>() before the <ahref="#mouseDoubleClickEvent">mouseDoubleClickEvent</a>().
<p><p>See also <ahref="#mousePressEvent">mousePressEvent</a>(), <ahref="#mouseReleaseEvent">mouseReleaseEvent</a>(), <ahref="#mouseMoveEvent">mouseMoveEvent</a>(), <ahref="#event">event</a>(), and <ahref="qmouseevent.html">TQMouseEvent</a>.
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive mouse move events for the widget.
<p> If mouse tracking is switched off, mouse move events only occur if
a mouse button is pressed while the mouse is being moved. If mouse
tracking is switched on, mouse move events occur even if no mouse
button is pressed.
<p><ahref="qmouseevent.html#pos">TQMouseEvent::pos</a>() reports the position of the mouse cursor,
relative to this widget. For press and release events, the
position is usually the same as the position of the last mouse
move event, but it might be different if the user's hand shakes.
This is a feature of the underlying window system, not TQt.
<p><p>See also <ahref="#mouseTracking-prop">mouseTracking</a>, <ahref="#mousePressEvent">mousePressEvent</a>(), <ahref="#mouseReleaseEvent">mouseReleaseEvent</a>(), <ahref="#mouseDoubleClickEvent">mouseDoubleClickEvent</a>(), <ahref="#event">event</a>(), and <ahref="qmouseevent.html">TQMouseEvent</a>.
<p>Examples: <ahref="aclock-example.html#x1206">aclock/aclock.cpp</a>, <ahref="drawlines-example.html#x1658">drawlines/connect.cpp</a>, <ahref="simple_dd-example.html#x2831">iconview/simple_dd/main.cpp</a>, <ahref="life-example.html#x1896">life/life.cpp</a>, <ahref="popup-example.html#x1620">popup/popup.cpp</a>, <ahref="qmag-example.html#x1800">qmag/qmag.cpp</a>, and <ahref="scribble-example.html#x948">scribble/scribble.cpp</a>.
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive mouse press events for the widget.
<p> If you create new widgets in the <ahref="#mousePressEvent">mousePressEvent</a>() the
<ahref="#mouseReleaseEvent">mouseReleaseEvent</a>() may not end up where you expect, depending on
the underlying window system (or X11 window manager), the widgets'
location and maybe more.
<p> The default implementation implements the closing of popup widgets
when you click outside the window. For other widget types it does
nothing.
<p><p>See also <ahref="#mouseReleaseEvent">mouseReleaseEvent</a>(), <ahref="#mouseDoubleClickEvent">mouseDoubleClickEvent</a>(), <ahref="#mouseMoveEvent">mouseMoveEvent</a>(), <ahref="#event">event</a>(), and <ahref="qmouseevent.html">TQMouseEvent</a>.
<p>Examples: <ahref="biff-example.html#x1960">biff/biff.cpp</a>, <ahref="drawlines-example.html#x1659">drawlines/connect.cpp</a>, <ahref="simple_dd-example.html#x2832">iconview/simple_dd/main.cpp</a>, <ahref="life-example.html#x1897">life/life.cpp</a>, <ahref="qmag-example.html#x1801">qmag/qmag.cpp</a>, <ahref="scribble-example.html#x949">scribble/scribble.cpp</a>, and <ahref="tooltip-example.html#x452">tooltip/tooltip.cpp</a>.
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive mouse release events for the widget.
<p><p>See also <ahref="#mouseDoubleClickEvent">mouseDoubleClickEvent</a>(), <ahref="#mouseMoveEvent">mouseMoveEvent</a>(), <ahref="#event">event</a>(), and <ahref="qmouseevent.html">TQMouseEvent</a>.
<p>Examples: <ahref="drawlines-example.html#x1660">drawlines/connect.cpp</a>, <ahref="hello-example.html#x1641">hello/hello.cpp</a>, <ahref="popup-example.html#x1621">popup/popup.cpp</a>, <ahref="qmag-example.html#x1802">qmag/qmag.cpp</a>, <ahref="scribble-example.html#x950">scribble/scribble.cpp</a>, <ahref="showimg-example.html#x1350">showimg/showimg.cpp</a>, and <ahref="tutorial1-14.html#x2432">t14/cannon.cpp</a>.
This event handler can be reimplemented in a subclass to receive
widget move events. When the widget receives this event, it is
already at the new position.
<p> The old position is accessible through <ahref="qmoveevent.html#oldPos">TQMoveEvent::oldPos</a>().
<p><p>See also <ahref="#resizeEvent">resizeEvent</a>(), <ahref="#event">event</a>(), <ahref="#pos-prop">pos</a>, and <ahref="qmoveevent.html">TQMoveEvent</a>.
<p><p>See also <ahref="#event">event</a>(), <ahref="#repaint">repaint</a>(), <ahref="#update">update</a>(), <ahref="ntqpainter.html">TQPainter</a>, <ahref="ntqpixmap.html">TQPixmap</a>, and <ahref="qpaintevent.html">TQPaintEvent</a>.
<p>Reimplemented in <ahref="ntqbutton.html#paintEvent">TQButton</a>, <ahref="ntqframe.html#paintEvent">TQFrame</a>, <ahref="qglwidget.html#paintEvent">TQGLWidget</a>, <ahref="ntqsizegrip.html#paintEvent">TQSizeGrip</a>, <ahref="ntqstatusbar.html#paintEvent">TQStatusBar</a>, and <ahref="ntqtabbar.html#paintEvent">TQTabBar</a>.
Repaints the widget directly by calling <ahref="#paintEvent">paintEvent</a>() immediately,
unless updates are disabled or the widget is hidden.
<p> If <em>erase</em> is TRUE, TQt erases the area <em>(x, y, w, h)</em> before the
paintEvent() call.
<p> If <em>w</em> is negative, it is replaced with <tt>width() - x</tt>, and if
<em>h</em> is negative, it is replaced width <tt>height() - y</tt>.
<p> We suggest only using <ahref="#repaint">repaint</a>() if you need an immediate repaint,
for example during animation. In almost all circumstances <ahref="#update">update</a>()
is better, as it permits TQt to optimize for speed and minimize
flicker.
<p><b>Warning:</b> If you call repaint() in a function which may itself be
called from paintEvent(), you may get infinite recursion. The
update() function never causes recursion.
<p><p>See also <ahref="#update">update</a>(), <ahref="#paintEvent">paintEvent</a>(), <ahref="#updatesEnabled-prop">updatesEnabled</a>, and <ahref="#erase">erase</a>().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Repaints the widget directly by calling <ahref="#paintEvent">paintEvent</a>() directly,
unless updates are disabled or the widget is hidden.
<p> Erases the widget region <em>reg</em> if <em>erase</em> is TRUE.
<p> Only use repaint if your widget needs to be repainted immediately,
for example when doing some animation. In all other cases, use
<ahref="#update">update</a>(). Calling update() many times in a row will generate a
single paint event.
<p><b>Warning:</b> If you call <ahref="#repaint">repaint</a>() in a function which may itself be
called from paintEvent(), you may get infinite recursion. The
update() function never causes recursion.
<p><p>See also <ahref="#update">update</a>(), <ahref="#paintEvent">paintEvent</a>(), <ahref="#updatesEnabled-prop">updatesEnabled</a>, and <ahref="#erase">erase</a>().
Reparents the widget. The widget gets a new <em>parent</em>, new widget
flags (<em>f</em>, but as usual, use 0) at a new position in its new
parent (<em>p</em>).
<p> If <em>showIt</em> is TRUE, <ahref="#show">show</a>() is called once the widget has been
reparented.
<p> If the new parent widget is in a different top-level widget, the
reparented widget and its children are appended to the end of the
<ahref="#setFocusPolicy">tab chain</a> of the new parent
widget, in the same internal order as before. If one of the moved
widgets had <ahref="focus.html#keyboard-focus">keyboard focus</a>, <ahref="#reparent">reparent</a>() calls <ahref="#clearFocus">clearFocus</a>() for that
widget.
<p> If the new parent widget is in the same top-level widget as the
old parent, reparent doesn't change the tab order or keyboard
focus.
<p><b>Warning:</b> It is extremely unlikely that you will ever need this
function. If you have a widget that changes its content
<p><p>See also <ahref="#moveEvent">moveEvent</a>(), <ahref="#event">event</a>(), <ahref="#size-prop">size</a>, <ahref="qresizeevent.html">TQResizeEvent</a>, and <ahref="#paintEvent">paintEvent</a>().
<p>Examples: <ahref="drawdemo-example.html#x1089">drawdemo/drawdemo.cpp</a>, <ahref="menu-example.html#x1884">menu/menu.cpp</a>, <ahref="qmag-example.html#x1806">qmag/qmag.cpp</a>, <ahref="scribble-example.html#x952">scribble/scribble.cpp</a>, <ahref="showimg-example.html#x1353">showimg/showimg.cpp</a>, <ahref="tooltip-example.html#x454">tooltip/tooltip.cpp</a>, and <ahref="xform-example.html#x1269">xform/xform.cpp</a>.
Disables widget input events if <em>disable</em> is TRUE; otherwise
enables input events.
<p> See the <ahref="#enabled-prop">enabled</a> documentation for more information.
<p><p>See also <ahref="#isEnabledTo">isEnabledTo</a>(), <ahref="qkeyevent.html">TQKeyEvent</a>, <ahref="qmouseevent.html">TQMouseEvent</a>, and <ahref="#enabledChange">enabledChange</a>().
Sets the erase color of the widget to <em>color</em>.
<p> The erase color is the color the widget is to be cleared to before
<ahref="#paintEvent">paintEvent</a>() is called. If there is an erase pixmap (set using
<ahref="#setErasePixmap">setErasePixmap</a>()), then this property has an indeterminate value.
<p><p>See also <ahref="#erasePixmap">erasePixmap</a>(), <ahref="#backgroundColor">backgroundColor</a>(), <ahref="#backgroundMode-prop">backgroundMode</a>, and <ahref="#palette-prop">palette</a>.
Sets both the minimum and maximum heights of the widget to <em>h</em>
without changing the widths. Provided for convenience.
<p><p>See also <ahref="#sizeHint-prop">sizeHint</a>, <ahref="#minimumSize-prop">minimumSize</a>, <ahref="#maximumSize-prop">maximumSize</a>, and <ahref="#setFixedSize">setFixedSize</a>().
<p>Examples: <ahref="simple-font-demo-example.html#x2859">fonts/simple-qfont-demo/viewer.cpp</a>, <ahref="layout-example.html#x545">layout/layout.cpp</a>, <ahref="qdir-example.html#x1852">qdir/qdir.cpp</a>, and <ahref="showimg-example.html#x1354">showimg/showimg.cpp</a>.
Sets both the minimum and maximum width of the widget to <em>w</em>
without changing the heights. Provided for convenience.
<p><p>See also <ahref="#sizeHint-prop">sizeHint</a>, <ahref="#minimumSize-prop">minimumSize</a>, <ahref="#maximumSize-prop">maximumSize</a>, and <ahref="#setFixedSize">setFixedSize</a>().
<p>Examples: <ahref="progressbar-example.html#x974">progressbar/progressbar.cpp</a> and <ahref="qdir-example.html#x1853">qdir/qdir.cpp</a>.
See the <ahref="ntqwidget.html#font-prop">"font"</a> property for details.
<p>Reimplemented in <ahref="ntqcombobox.html#setFont">TQComboBox</a>, <ahref="ntqlabel.html#setFont">TQLabel</a>, and <ahref="ntqtabdialog.html#setFont">TQTabDialog</a>.
<p> This function corresponds to <ahref="#setMaximumSize">setMaximumSize</a>( <ahref="ntqsize.html">TQSize</a>(<em>maxw</em>, <em>maxh</em>) ). Sets the maximum width to <em>maxw</em> and the maximum height
When a widget gets focus, it should call <ahref="#setMicroFocusHint">setMicroFocusHint</a>() with
some appropriate position and size, <em>x</em>, <em>y</em>, <em>width</em> and <em>height</em>. This has no <em>visual</em> effect, it just provides hints to
any system-specific input handling tools.
<p> The <em>text</em> argument should be TRUE if this is a position for text
input.
<p> In the Windows version of TQt, this method sets the system caret,
which is used for user Accessibility focus handling. If <em>text</em>
is TRUE, it also sets the IME composition window in Far East Asian
language input systems.
<p> In the X11 version of TQt, if <em>text</em> is TRUE, this method sets the
XIM "spot" point for complex language input handling.
<p> The font <em>f</em> is a rendering hint to the currently active input method.
If <em>f</em> is 0 the widget's font is used.
<p><p>See also <ahref="#microFocusHint-prop">microFocusHint</a>.
See the <ahref="ntqwidget.html#palette-prop">"palette"</a> property for details.
<p>Reimplemented in <ahref="ntqcombobox.html#setPalette">TQComboBox</a>, <ahref="ntqscrollbar.html#setPalette">TQScrollBar</a>, and <ahref="ntqslider.html#setPalette">TQSlider</a>.
<p><p>See also <ahref="#style">style</a>(), <ahref="ntqstyle.html">TQStyle</a>, <ahref="ntqapplication.html#style">TQApplication::style</a>(), and <ahref="ntqapplication.html#setStyle">TQApplication::setStyle</a>().
<p>Examples: <ahref="grapher-nsplugin-example.html#x2778">grapher/grapher.cpp</a> and <ahref="progressbar-example.html#x975">progressbar/progressbar.cpp</a>.
Moves the <em>second</em> widget around the ring of focus widgets so
that <ahref="focus.html#keyboard-focus">keyboard focus</a> moves from the <em>first</em> widget to the <em>second</em> widget when the Tab key is pressed.
<p> Note that since the tab order of the <em>second</em> widget is changed,
you should order a chain like this:
<p><pre>
<ahref="#setTabOrder">setTabOrder</a>( a, b ); // a to b
<ahref="#setTabOrder">setTabOrder</a>( b, c ); // a to b to c
<ahref="#setTabOrder">setTabOrder</a>( c, d ); // a to b to c to d
</pre>
<p><em>not</em> like this:
<p><pre>
<ahref="#setTabOrder">setTabOrder</a>( c, d ); // c to d WRONG
<ahref="#setTabOrder">setTabOrder</a>( a, b ); // a to b AND c to d
<ahref="#setTabOrder">setTabOrder</a>( b, c ); // a to b to c, but not c to d
</pre>
<p> If <em>first</em> or <em>second</em> has a focus proxy, <ahref="#setTabOrder">setTabOrder</a>()
correctly substitutes the proxy.
<p><p>See also <ahref="#focusPolicy-prop">focusPolicy</a> and <ahref="#setFocusProxy">setFocusProxy</a>().
<p> Sets the <ahref="ntqt.html#WindowState">window state</a> to <em>windowState</em>. The window state is a OR'ed
combination of TQt::WindowState: <ahref="ntqt.html#WindowState-enum">WindowMinimized</a>, <ahref="ntqt.html#WindowState-enum">WindowMaximized</a>, <ahref="ntqt.html#WindowState-enum">WindowFullScreen</a> and <ahref="ntqt.html#WindowState-enum">WindowActive</a>.
<p> If its size or position has changed, TQt guarantees that a widget
gets move and resize events just before it is shown.
<p> You almost never have to reimplement this function. If you need to
change some settings before a widget is shown, use <ahref="#showEvent">showEvent</a>()
instead. If you need to do some delayed initialization use
<ahref="#polish">polish</a>().
<p><p>See also <ahref="#showEvent">showEvent</a>(), <ahref="#hide">hide</a>(), <ahref="#showMinimized">showMinimized</a>(), <ahref="#showMaximized">showMaximized</a>(), <ahref="#showNormal">showNormal</a>(), <ahref="#visible-prop">visible</a>, and <ahref="#polish">polish</a>().
<p> Calling this function only affects top-level widgets.
<p> To return from full-screen mode, call <ahref="#showNormal">showNormal</a>().
<p> Full-screen mode works fine under Windows, but has certain
problems under X. These problems are due to limitations of the
ICCCM protocol that specifies the communication between X11
clients and the window manager. ICCCM simply does not understand
the concept of non-decorated full-screen windows. Therefore, the
best we can do is to request a borderless window and place and
resize it to fill the entire screen. Depending on the window
manager, this may or may not work. The borderless window is
requested using MOTIF hints, which are at least partially
supported by virtually all modern window managers.
<p> An alternative would be to bypass the window manager entirely and
create a window with the WX11BypassWM flag. This has other severe
problems though, like totally broken <ahref="focus.html#keyboard-focus">keyboard focus</a> and very
strange effects on desktop changes or when the user raises other
windows.
<p> X11 window managers that follow modern post-ICCCM specifications
support full-screen mode properly.
<p><p>See also <ahref="#showNormal">showNormal</a>(), <ahref="#showMaximized">showMaximized</a>(), <ahref="#show">show</a>(), <ahref="#hide">hide</a>(), and <ahref="#visible-prop">visible</a>.
<p> Calling this function only affects <ahref="#isTopLevel">top-level
widgets</a>.
<p> On X11, this function may not work properly with certain window
managers. See the <ahref="geometry.html">Window Geometry
documentation</a> for an explanation.
<p><p>See also <ahref="#setWindowState">setWindowState</a>(), <ahref="#showNormal">showNormal</a>(), <ahref="#showMinimized">showMinimized</a>(), <ahref="#show">show</a>(), <ahref="#hide">hide</a>(), and <ahref="#visible-prop">visible</a>.
<p>Examples: <ahref="canvas-example.html#x2968">canvas/main.cpp</a>, <ahref="helpviewer-example.html#x1045">helpviewer/main.cpp</a>, <ahref="mdi-example.html#x2087">mdi/application.cpp</a>, <ahref="qwerty-example.html#x422">qwerty/main.cpp</a>, <ahref="qwerty-example.html#x413">qwerty/qwerty.cpp</a>, and <ahref="scribble-example.html#x960">scribble/main.cpp</a>.
<p> Calling this function only affects <ahref="#isTopLevel">top-level
widgets</a>.
<p><p>See also <ahref="#showNormal">showNormal</a>(), <ahref="#showMaximized">showMaximized</a>(), <ahref="#show">show</a>(), <ahref="#hide">hide</a>(), <ahref="#visible-prop">visible</a>, and <ahref="#minimized-prop">minimized</a>.
Restores the widget after it has been maximized or minimized.
<p> Calling this function only affects <ahref="#isTopLevel">top-level
widgets</a>.
<p><p>See also <ahref="#setWindowState">setWindowState</a>(), <ahref="#showMinimized">showMinimized</a>(), <ahref="#showMaximized">showMaximized</a>(), <ahref="#show">show</a>(), <ahref="#hide">hide</a>(), and <ahref="#visible-prop">visible</a>.
<p><p>See also <ahref="#setStyle">TQWidget::setStyle</a>(), <ahref="ntqapplication.html#setStyle">TQApplication::setStyle</a>(), and <ahref="ntqapplication.html#style">TQApplication::style</a>().
<p><p>See also <ahref="ntqapplication.html#setStyle">TQApplication::setStyle</a>(), <ahref="#style">style</a>(), <ahref="#update">update</a>(), and <ahref="#updateGeometry">updateGeometry</a>().
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive tablet events for the widget.
<p> If you reimplement this handler, it is very important that you
<ahref="qtabletevent.html">ignore()</a> the event if you do not handle
it, so that the widget's parent can interpret it.
<p> The default implementation ignores the event.
<p><p>See also <ahref="qtabletevent.html#ignore">TQTabletEvent::ignore</a>(), <ahref="qtabletevent.html#accept">TQTabletEvent::accept</a>(), <ahref="#event">event</a>(), and <ahref="qtabletevent.html">TQTabletEvent</a>.
<p><p>See also <ahref="#repaint">repaint</a>(), <ahref="#paintEvent">paintEvent</a>(), <ahref="#updatesEnabled-prop">updatesEnabled</a>, <ahref="#erase">erase</a>(), and <ahref="#setWFlags">setWFlags</a>().
<p>Examples: <ahref="desktop-example.html#x1763">desktop/desktop.cpp</a> and <ahref="scrollview-example.html#x662">scrollview/scrollview.cpp</a>.
<p><p>See also <ahref="#repaint">repaint</a>(), <ahref="#paintEvent">paintEvent</a>(), <ahref="#updatesEnabled-prop">updatesEnabled</a>, and <ahref="#erase">erase</a>().
This event handler, for event <em>e</em>, can be reimplemented in a
subclass to receive wheel events for the widget.
<p> If you reimplement this handler, it is very important that you
<ahref="qwheelevent.html">ignore()</a> the event if you do not handle
it, so that the widget's parent can interpret it.
<p> The default implementation ignores the event.
<p><p>See also <ahref="qwheelevent.html#ignore">TQWheelEvent::ignore</a>(), <ahref="qwheelevent.html#accept">TQWheelEvent::accept</a>(), <ahref="#event">event</a>(), and <ahref="qwheelevent.html">TQWheelEvent</a>.
<p> This virtual function is called for a widget when its window is
activated or deactivated by the window system. <em>oldActive</em> is the
previous state; you can get the new setting from <ahref="#isActiveWindow">isActiveWindow</a>().
<p> Reimplement this function if your widget needs to know when its
window becomes activated or deactivated.
<p> The default implementation updates the visible part of the widget
if the inactive and the active colorgroup are different for colors
other than the highlight and link colors.
<p><p>See also <ahref="#setActiveWindow">setActiveWindow</a>(), <ahref="#isActiveWindow-prop">isActiveWindow</a>, <ahref="#update">update</a>(), and <ahref="#palette-prop">palette</a>.
</h3> Returns the current <ahref="ntqt.html#WindowState">window state</a>. The window state is a OR'ed
combination of TQt::WindowState: <ahref="ntqt.html#WindowState-enum">WindowMinimized</a>, <ahref="ntqt.html#WindowState-enum">WindowMaximized</a>, <ahref="ntqt.html#WindowState-enum">WindowFullScreen</a> and <ahref="ntqt.html#WindowState-enum">WindowActive</a>.
<p><p>See also <ahref="ntqt.html#WindowState-enum">TQt::WindowState</a> and <ahref="#setWindowState">setWindowState</a>().
<p>This property holds whether drop events are enabled for this widget.
<p>Setting this property to TRUE announces to the system that this
widget <em>may</em> be able to accept drop events.
<p> If the widget is the desktop (<ahref="#isDesktop">TQWidget::isDesktop</a>()), this may
fail if another application is using the desktop; you can call
<ahref="#acceptDrops">acceptDrops</a>() to test if this occurs.
<p><b>Warning:</b>
Do not modify this property in a Drag&Drop event handler.
<p>Set this property's value with <ahref="#setAcceptDrops">setAcceptDrops</a>() and get this property's value with <ahref="#acceptDrops">acceptDrops</a>().
<p> While being a technically appealing concept, masks have a big
drawback: when using complex masks that cannot be expressed easily
with relatively simple regions, they can be very slow on some
window systems. The classic example is a transparent label. The
complex shape of its contents makes it necessary to represent its
mask by a bitmap, which consumes both memory and time. If all you
want is to blend the background of several neighboring widgets
together seamlessly, you will probably want to use
<ahref="#setBackgroundOrigin">setBackgroundOrigin</a>() rather than a mask.
<p><p>See also <ahref="#updateMask">updateMask</a>(), <ahref="#setMask">setMask</a>(), <ahref="#clearMask">clearMask</a>(), and <ahref="#backgroundOrigin-prop">backgroundOrigin</a>.
<p>Set this property's value with <ahref="#setAutoMask">setAutoMask</a>() and get this property's value with <ahref="#autoMask">autoMask</a>().
<p><p>See also <ahref="#backgroundColor">backgroundColor</a>(), <ahref="#backgroundPixmap">backgroundPixmap</a>(), <ahref="#eraseColor">eraseColor</a>(), <ahref="#palette-prop">palette</a>, and <ahref="ntqapplication.html#setPalette">TQApplication::setPalette</a>().
<ahref="#setBackgroundMode">setBackgroundMode</a>(), namely <ahref="ntqt.html#BackgroundMode-enum">FixedPixmap</a> and <ahref="ntqt.html#BackgroundMode-enum">FixedColor</a>. You
must call <ahref="#setBackgroundPixmap">setBackgroundPixmap</a>() and setPaletteBackgroundColor()
instead.
<p>Set this property's value with <ahref="#setBackgroundMode">setBackgroundMode</a>() and get this property's value with <ahref="#backgroundMode">backgroundMode</a>().
<p>This property holds the origin of the widget's background.
<p>The origin is either WidgetOrigin (the default), ParentOrigin,
WindowOrigin or AncestorOrigin.
<p> This only makes a difference if the widget has a background
pixmap, in which case positioning matters. Using <ahref="#BackgroundOrigin-enum">WindowOrigin</a>
for several neighboring widgets makes the background blend
together seamlessly. <ahref="#BackgroundOrigin-enum">AncestorOrigin</a> allows blending backgrounds
seamlessly when an ancestor of the widget has an origin other than
<ahref="#BackgroundOrigin-enum">WindowOrigin</a>.
<p><p>See also <ahref="#backgroundPixmap">backgroundPixmap</a>() and <ahref="#backgroundMode-prop">backgroundMode</a>.
<p>Set this property's value with <ahref="#setBackgroundOrigin">setBackgroundOrigin</a>() and get this property's value with <ahref="#backgroundOrigin">backgroundOrigin</a>().
<p>Set this property's value with <ahref="#setCursor">setCursor</a>(), get this property's value with <ahref="#cursor">cursor</a>(), and reset this property's value with <ahref="#unsetCursor">unsetCursor</a>().
<p><p>See also <ahref="ntqwhatsthis.html#inWhatsThisMode">TQWhatsThis::inWhatsThisMode</a>() and <ahref="ntqwhatsthis.html#leaveWhatsThisMode">TQWhatsThis::leaveWhatsThisMode</a>().
<p>This property holds whether the widget is enabled.
<p>An enabled widget receives keyboard and mouse events; a disabled
widget does not. In fact, an enabled widget only receives keyboard
events when it is in focus.
<p> Some widgets display themselves differently when they are
disabled. For example a button might draw its label grayed out. If
your widget needs to know when it becomes enabled or disabled, you
can reimplement the <ahref="#enabledChange">enabledChange</a>() function.
<p> Disabling a widget implicitly disables all its children. Enabling
respectively enables all child widgets unless they have been
explicitly disabled.
<p><p>See also <ahref="#enabled-prop">enabled</a>, <ahref="#isEnabledTo">isEnabledTo</a>(), <ahref="qkeyevent.html">TQKeyEvent</a>, <ahref="qmouseevent.html">TQMouseEvent</a>, and <ahref="#enabledChange">enabledChange</a>().
<p>Set this property's value with <ahref="#setEnabled">setEnabled</a>() and get this property's value with <ahref="#isEnabled">isEnabled</a>().
<p><p>See also <ahref="#setFocus">setFocus</a>(), <ahref="#clearFocus">clearFocus</a>(), <ahref="#focusPolicy-prop">focusPolicy</a>, and <ahref="ntqapplication.html#focusWidget">TQApplication::focusWidget</a>().
<p><p>See also <ahref="#focusPolicy-prop">focusPolicy</a>, <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), and <ahref="#enabled-prop">enabled</a>.
<p>Get this property's value with <ahref="#isFocusEnabled">isFocusEnabled</a>().
<p><p>See also <ahref="#focusEnabled-prop">focusEnabled</a>, <ahref="#focusInEvent">focusInEvent</a>(), <ahref="#focusOutEvent">focusOutEvent</a>(), <ahref="#keyPressEvent">keyPressEvent</a>(), <ahref="#keyReleaseEvent">keyReleaseEvent</a>(), and <ahref="#enabled-prop">enabled</a>.
<p>Set this property's value with <ahref="#setFocusPolicy">setFocusPolicy</a>() and get this property's value with <ahref="#focusPolicy">focusPolicy</a>().
<p> In addition to setting the font, <ahref="#setFont">setFont</a>() informs all children
about the change.
<p><p>See also <ahref="#fontChange">fontChange</a>(), <ahref="#fontInfo">fontInfo</a>(), <ahref="#fontMetrics">fontMetrics</a>(), and <ahref="#ownFont-prop">ownFont</a>.
<p>Set this property's value with <ahref="#setFont">setFont</a>(), get this property's value with <ahref="#font">font</a>(), and reset this property's value with <ahref="#unsetFont">unsetFont</a>().
<p>This property holds whether the widget is explicitly hidden.
<p>If FALSE, the widget is visible or would become visible if all its
ancestors became visible.
<p><p>See also <ahref="#hide">hide</a>(), <ahref="#show">show</a>(), <ahref="#visible-prop">visible</a>, <ahref="#isVisibleTo">isVisibleTo</a>(), and <ahref="#shown-prop">shown</a>.
<p>Set this property's value with <ahref="#setHidden">setHidden</a>() and get this property's value with <ahref="#isHidden">isHidden</a>().
<p>This property holds enables or disables the use of input methods for this widget.
<p>Most Widgets (as eg. buttons) that do not handle text input should have
the input method disabled if they have focus. This is the default.
<p> If a widget handles text input it should set this property to TRUE.
<p>Set this property's value with <ahref="#setInputMethodEnabled">setInputMethodEnabled</a>() and get this property's value with <ahref="#isInputMethodEnabled">isInputMethodEnabled</a>().
<p>A popup widget is created by specifying the <ahref="ntqt.html#WidgetFlags">widget flag</a><ahref="ntqt.html#WidgetFlags-enum">WType_Popup</a> to the widget constructor. A popup widget is also a
<p><p>See also <ahref="#topLevelWidget">topLevelWidget</a>(), <ahref="#isDialog-prop">isDialog</a>, <ahref="#isModal-prop">isModal</a>, <ahref="#isPopup-prop">isPopup</a>, <ahref="#isDesktop-prop">isDesktop</a>, and <ahref="#parentWidget">parentWidget</a>().
<p>Get this property's value with <ahref="#isTopLevel">isTopLevel</a>().
<p>This property holds whether this widget is maximized.
<p>This property is only relevant for top-level widgets.
<p> Note that due to limitations in some window-systems, this does not
always report the expected results (e.g. if the user on X11
maximizes the window via the window manager, TQt has no way of
distinguishing this from any other resize). This is expected to
improve as window manager protocols evolve.
<p><p>See also <ahref="#windowState">windowState</a>(), <ahref="#showMaximized">showMaximized</a>(), <ahref="#visible-prop">visible</a>, <ahref="#show">show</a>(), <ahref="#hide">hide</a>(), <ahref="#showNormal">showNormal</a>(), and <ahref="#minimized-prop">minimized</a>.
<p>Get this property's value with <ahref="#isMaximized">isMaximized</a>().
<p>This property holds the widget's maximum height.
<p>This property corresponds to <ahref="#maximumSize">maximumSize</a>().<ahref="#height">height</a>().
<p><p>See also <ahref="#maximumSize-prop">maximumSize</a> and <ahref="#maximumWidth-prop">maximumWidth</a>.
<p>Set this property's value with <ahref="#setMaximumHeight">setMaximumHeight</a>() and get this property's value with <ahref="#maximumHeight">maximumHeight</a>().
<p>The widget cannot be resized to a larger size than the maximum
widget size.
<p><p>See also <ahref="#maximumWidth-prop">maximumWidth</a>, <ahref="#maximumHeight-prop">maximumHeight</a>, <ahref="#maximumSize-prop">maximumSize</a>, <ahref="#minimumSize-prop">minimumSize</a>, and <ahref="#sizeIncrement-prop">sizeIncrement</a>.
<p>Set this property's value with <ahref="#setMaximumSize">setMaximumSize</a>() and get this property's value with <ahref="#maximumSize">maximumSize</a>().
<p>This property holds the widget's maximum width.
<p>This property corresponds to <ahref="#maximumSize">maximumSize</a>().<ahref="#width">width</a>().
<p><p>See also <ahref="#maximumSize-prop">maximumSize</a> and <ahref="#maximumHeight-prop">maximumHeight</a>.
<p>Set this property's value with <ahref="#setMaximumWidth">setMaximumWidth</a>() and get this property's value with <ahref="#maximumWidth">maximumWidth</a>().
<p>This property holds whether this widget is minimized (iconified).
<p>This property is only relevant for top-level widgets.
<p><p>See also <ahref="#showMinimized">showMinimized</a>(), <ahref="#visible-prop">visible</a>, <ahref="#show">show</a>(), <ahref="#hide">hide</a>(), <ahref="#showNormal">showNormal</a>(), and <ahref="#maximized-prop">maximized</a>.
<p>Get this property's value with <ahref="#isMinimized">isMinimized</a>().
<p>This property holds the widget's minimum height.
<p>This property corresponds to <ahref="#minimumSize">minimumSize</a>().<ahref="#height">height</a>().
<p><p>See also <ahref="#minimumSize-prop">minimumSize</a> and <ahref="#minimumWidth-prop">minimumWidth</a>.
<p>Set this property's value with <ahref="#setMinimumHeight">setMinimumHeight</a>() and get this property's value with <ahref="#minimumHeight">minimumHeight</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="ntqlayout.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>().
<p><p>See also <ahref="ntqsize.html#isValid">TQSize::isValid</a>(), <ahref="#size-prop">size</a>, <ahref="#minimumSize-prop">minimumSize</a>, and <ahref="#sizePolicy-prop">sizePolicy</a>.
<p>This property holds the widget's minimum width.
<p>This property corresponds to <ahref="#minimumSize">minimumSize</a>().<ahref="#width">width</a>().
<p><p>See also <ahref="#minimumSize-prop">minimumSize</a> and <ahref="#minimumHeight-prop">minimumHeight</a>.
<p>Set this property's value with <ahref="#setMinimumWidth">setMinimumWidth</a>() and get this property's value with <ahref="#minimumWidth">minimumWidth</a>().
<p><p>See also <ahref="#mouseMoveEvent">mouseMoveEvent</a>() and <ahref="ntqapplication.html#setGlobalMouseTracking">TQApplication::setGlobalMouseTracking</a>().
<p>Set this property's value with <ahref="#setMouseTracking">setMouseTracking</a>() and get this property's value with <ahref="#hasMouseTracking">hasMouseTracking</a>().
<p><p>See also <ahref="#ownPalette-prop">ownPalette</a>, <ahref="#colorGroup-prop">colorGroup</a>, and <ahref="ntqapplication.html#palette">TQApplication::palette</a>().
<p>Set this property's value with <ahref="#setPalette">setPalette</a>(), get this property's value with <ahref="#palette">palette</a>(), and reset this property's value with <ahref="#unsetPalette">unsetPalette</a>().
<ahref="ntqt.html#BackgroundMode-enum">PaletteButton</a> the color used for the palette's <ahref="qcolorgroup.html#ColorRole-enum">TQColorGroup::Button</a> color entry is set.
<ahref="#setPaletteBackgroundPixmap">setPaletteBackgroundPixmap</a>()), then the return value of this
function is indeterminate.
<p><p>See also <ahref="#paletteBackgroundPixmap-prop">paletteBackgroundPixmap</a>, <ahref="#paletteForegroundColor-prop">paletteForegroundColor</a>, <ahref="#palette-prop">palette</a>, and <ahref="#colorGroup-prop">colorGroup</a>.
<p>Set this property's value with <ahref="#setPaletteBackgroundColor">setPaletteBackgroundColor</a>(), get this property's value with <ahref="#paletteBackgroundColor">paletteBackgroundColor</a>(), and reset this property's value with <ahref="#unsetPalette">unsetPalette</a>().
<ahref="qcolorgroup.html#ColorRole-enum">TQColorGroup::Button</a> color entry is set.
<p> If there is a plain background color (set using
<ahref="#setPaletteBackgroundColor">setPaletteBackgroundColor</a>()), then this function returns 0.
<p><p>See also <ahref="#paletteBackgroundColor-prop">paletteBackgroundColor</a>, <ahref="#paletteForegroundColor-prop">paletteForegroundColor</a>, <ahref="#palette-prop">palette</a>, and <ahref="#colorGroup-prop">colorGroup</a>.
<p>Set this property's value with <ahref="#setPaletteBackgroundPixmap">setPaletteBackgroundPixmap</a>(), get this property's value with <ahref="#paletteBackgroundPixmap">paletteBackgroundPixmap</a>(), and reset this property's value with <ahref="#unsetPalette">unsetPalette</a>().
<p><p>See also <ahref="#palette-prop">palette</a>, <ahref="ntqapplication.html#setPalette">TQApplication::setPalette</a>(), <ahref="#backgroundMode-prop">backgroundMode</a>, <ahref="#foregroundColor">foregroundColor</a>(), <ahref="#backgroundMode-prop">backgroundMode</a>, and <ahref="#setEraseColor">setEraseColor</a>().
<p>Set this property's value with <ahref="#setPaletteForegroundColor">setPaletteForegroundColor</a>(), get this property's value with <ahref="#paletteForegroundColor">paletteForegroundColor</a>(), and reset this property's value with <ahref="#unsetPalette">unsetPalette</a>().
<p>This property holds whether the widget is shown.
<p>If TRUE, the widget is visible or would become visible if all its
ancestors became visible.
<p><p>See also <ahref="#hide">hide</a>(), <ahref="#show">show</a>(), <ahref="#visible-prop">visible</a>, <ahref="#isVisibleTo">isVisibleTo</a>(), and <ahref="#hidden-prop">hidden</a>.
<p>Set this property's value with <ahref="#setShown">setShown</a>() and get this property's value with <ahref="#isShown">isShown</a>().
<p> If you want a top-level window to have a fixed size, call
setResizeMode( TQLayout::FreeResize ) on its layout.
<p><ahref="#resize">resize</a>() is virtual, and all other overloaded resize()
implementations in TQt call it.
<p><b>Warning:</b> Calling resize() or <ahref="#setGeometry">setGeometry</a>() inside resizeEvent() can
lead to infinite recursion.
<p><p>See also <ahref="#pos-prop">pos</a>, <ahref="#geometry-prop">geometry</a>, <ahref="#minimumSize-prop">minimumSize</a>, <ahref="#maximumSize-prop">maximumSize</a>, and <ahref="#resizeEvent">resizeEvent</a>().
<p>Set this property's value with <ahref="#resize">resize</a>() and get this property's value with <ahref="#size">size</a>().
<p><p>See also <ahref="ntqsize.html#isValid">TQSize::isValid</a>(), <ahref="#minimumSizeHint-prop">minimumSizeHint</a>, <ahref="#sizePolicy-prop">sizePolicy</a>, <ahref="#minimumSize-prop">minimumSize</a>, and <ahref="#updateGeometry">updateGeometry</a>().
<p> Note that while you can set the size increment for all widgets, it
only affects top-level widgets.
<p><b>Warning:</b> The size increment has no effect under Windows, and may
be disregarded by the window manager on X.
<p><p>See also <ahref="#size-prop">size</a>, <ahref="#minimumSize-prop">minimumSize</a>, and <ahref="#maximumSize-prop">maximumSize</a>.
<p>Set this property's value with <ahref="#setSizeIncrement">setSizeIncrement</a>() and get this property's value with <ahref="#sizeIncrement">sizeIncrement</a>().
<p><p>See also <ahref="#sizeHint-prop">sizeHint</a>, <ahref="ntqlayout.html">TQLayout</a>, <ahref="ntqsizepolicy.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>().
<p><p>See also <ahref="#update">update</a>(), <ahref="#repaint">repaint</a>(), and <ahref="#paintEvent">paintEvent</a>().
<p>Set this property's value with <ahref="#setUpdatesEnabled">setUpdatesEnabled</a>() and get this property's value with <ahref="#isUpdatesEnabled">isUpdatesEnabled</a>().
<p>This property holds whether the widget is visible.
<p>Calling <ahref="#show">show</a>() sets the widget to visible status if all its parent
widgets up to the top-level widget are visible. If an ancestor is
not visible, the widget won't become visible until all its
ancestors are shown.
<p> Calling <ahref="#hide">hide</a>() hides a widget explicitly. An explicitly hidden
widget will never become visible, even if all its ancestors become
visible, unless you show it.
<p> A widget receives show and hide events when its visibility status
changes. Between a hide and a show event, there is no need to
waste CPU cycles preparing or displaying information to the user.
A video application, for example, might simply stop generating new
frames.
<p> A widget that happens to be obscured by other windows on the
screen is considered to be visible. The same applies to iconified
top-level widgets and windows that exist on another virtual
desktop (on platforms that support this concept). A widget
receives spontaneous show and hide events when its mapping status
is changed by the window system, e.g. a spontaneous hide event
when the user minimizes the window, and a spontaneous show event
when the window is restored again.
<p><p>See also <ahref="#show">show</a>(), <ahref="#hide">hide</a>(), <ahref="#hidden-prop">hidden</a>, <ahref="#isVisibleTo">isVisibleTo</a>(), <ahref="#minimized-prop">minimized</a>, <ahref="#showEvent">showEvent</a>(), and <ahref="#hideEvent">hideEvent</a>().
<p>Get this property's value with <ahref="#isVisible">isVisible</a>().
that semi-transparent windows update and resize significantely slower than
opaque windows.
<p>Set this property's value with <ahref="#setWindowOpacity">setWindowOpacity</a>() and get this property's value with <ahref="#windowOpacity">windowOpacity</a>().
<h3class=fn>int <aname="x-prop"></a>x</h3><p>This property holds the x coordinate of the widget relative to its parent including any window frame.
<p>See the <ahref="geometry.html">Window Geometry documentation</a>
for an overview of top-level widget geometry.
<p><p>See also <ahref="#frameGeometry-prop">frameGeometry</a>, <ahref="#y-prop">y</a>, and <ahref="#pos-prop">pos</a>.
<p>Get this property's value with <ahref="#x">x</a>().
<h3class=fn>int <aname="y-prop"></a>y</h3>
<p>This property holds the y coordinate of the widget relative to its parent and including any window frame.
<p>See the <ahref="geometry.html">Window Geometry documentation</a>
for an overview of top-level widget geometry.
<p><p>See also <ahref="#frameGeometry-prop">frameGeometry</a>, <ahref="#x-prop">x</a>, and <ahref="#pos-prop">pos</a>.
<p>Get this property's value with <ahref="#y">y</a>().
<!-- eof -->
<hr><p>
This file is part of the <ahref="index.html">TQt toolkit</a>.