Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2450

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QWidget" doc="/**
&lt;p&gt;The &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; class is the base class of all user interface objects.&lt;/p&gt;
&lt;p&gt;The widget is the atom of the user interface: it receives mouse, keyboard and other events from the window system, and paints a representation of itself on the screen. Every widget is rectangular, and they are sorted in a Z-order. A widget is clipped by its parent and by the widgets in front of it.&lt;/p&gt;
&lt;p&gt;A widget that isn't embedded in a parent widget is called a window. Usually, windows have a frame and a title bar, although it is also possible to create windows without such decoration using suitable window flags&lt;/tt&gt;). In Qt, &lt;a href=&quot;QMainWindow.html&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; and the various subclasses of &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; are the most common window types.&lt;/p&gt;
&lt;p&gt;Every widget's constructor accepts one or two standard arguments:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;&lt;tt&gt;QWidget *parent = 0&lt;/tt&gt; is the parent of the new widget. If it is 0 (the default), the new widget will be a window. If not, it will be a child of &lt;i&gt;parent&lt;/i&gt;, and be constrained by &lt;i&gt;parent&lt;/i&gt;'s geometry (unless you specify &lt;a href=&quot;%2E%2E/winsystem.html#qt-windows&quot;&gt;Qt::Window&lt;/tt&gt;&lt;/a&gt; as window flag).&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;Qt::WindowFlags f = 0&lt;/tt&gt; (where available) sets the window flags; the default is suitable for almost all widgets, but to get, for example, a window without a window system frame, you must use special flags.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; has many member functions, but some of them have little direct functionality; for example, &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; has a font property, but never uses this itself. There are many subclasses which provide real functionality, such as &lt;a href=&quot;QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPushButton.html&quot;&gt;&lt;tt&gt;QPushButton&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QListWidget.html&quot;&gt;&lt;tt&gt;QListWidget&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QTabWidget.html&quot;&gt;&lt;tt&gt;QTabWidget&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;a name=&quot;top-level-and-child-widgets&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Top-Level and Child Widgets&lt;/h3&gt;
&lt;p&gt;A widget without a parent widget is always an independent window (top-level widget). For these widgets, &lt;a href=&quot;QWidget.html#setWindowTitle(java.lang.String)&quot;&gt;&lt;tt&gt;setWindowTitle&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#setWindowIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setWindowIcon&lt;/tt&gt;&lt;/a&gt; set the title bar and icon respectively.&lt;/p&gt;
&lt;p&gt;Non-window widgets are child widgets, and are displayed within their parent widgets. Most widgets in Qt are mainly useful as child widgets. For example, it is possible to display a button as a top-level window, but most people prefer to put their buttons inside other widgets, such as &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/parent-child-widgets.png&quot; alt=&quot;A parent widget containing various child widgets.&quot; /&gt;&lt;/p&gt;&lt;p&gt;The above diagram shows a &lt;a href=&quot;QGroupBox.html&quot;&gt;&lt;tt&gt;QGroupBox&lt;/tt&gt;&lt;/a&gt; widget being used to hold various child widgets in a layout provided by &lt;a href=&quot;QGridLayout.html&quot;&gt;&lt;tt&gt;QGridLayout&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt; child widgets have been outlined to indicate their full sizes.&lt;/p&gt;
&lt;p&gt;If you want to use a &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; to hold child widgets you will usually want to add a layout to the parent &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;. See &lt;a href=&quot;%2E%2E/layout.html&quot;&gt;Layout Classes&lt;/tt&gt;&lt;/a&gt; for more information about these.&lt;/p&gt;
&lt;a name=&quot;composite-widgets&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Composite Widgets&lt;/h3&gt;
&lt;p&gt;When a widgets is used as a container to group a number of child widgets, it is known as a composite widget. These can be created by constructing a widget with the required visual properties - a &lt;a href=&quot;QFrame.html&quot;&gt;&lt;tt&gt;QFrame&lt;/tt&gt;&lt;/a&gt;, for example - and adding child widgets to it, usually managed by a layout. The above diagram shows such a composite widget that was created using &lt;a href=&quot;%2E%2E/qtjambi-designer.html&quot;&gt;Qt Designer&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Composite widgets can also be created by subclassing a standard widget, such as &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QFrame.html&quot;&gt;&lt;tt&gt;QFrame&lt;/tt&gt;&lt;/a&gt;, and adding the necessary layout and child widgets in the constructor of the subclass. Many of the &lt;a href=&quot;%2E%2E/examples.html&quot;&gt;examples provided with Qt&lt;/tt&gt;&lt;/a&gt; use this approach, and it is also covered in the &lt;a href=&quot;%2E%2E/tutorial.html&quot;&gt;Qt Tutorial&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;a name=&quot;custom-widgets-and-painting&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Custom Widgets and Painting&lt;/h3&gt;
&lt;p&gt;Since &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; is a subclass of &lt;a href=&quot;QPaintDevice.html&quot;&gt;&lt;tt&gt;QPaintDevice&lt;/tt&gt;&lt;/a&gt;, subclasses can be used to display custom content that is composed using a series of painting operations with an instance of the &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; class. This approach contrasts with the canvas-style approach used by the &lt;a href=&quot;%2E%2E/graphicsview.html#graphics-view&quot;&gt;Graphics View Framework&lt;/tt&gt;&lt;/a&gt; where items are added to a scene by the application and are rendered by the framework itself.&lt;/p&gt;
&lt;p&gt;Each widget performs all painting operations from within its &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; function. This is called whenever the widget needs to be redrawn, either as a result of some external change or when requested by the application.&lt;/p&gt;
&lt;p&gt;The Analog Clock example&lt;/tt&gt; shows how a simple widget can handle paint events.&lt;/p&gt;
&lt;a name=&quot;size-hints-and-size-policies&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Size Hints and Size Policies&lt;/h3&gt;
&lt;p&gt;When implementing a new widget, it is almost always useful to reimplement &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; to provide a reasonable default size for the widget and to set the correct size policy with &lt;a href=&quot;QWidget.html#setSizePolicy(com.trolltech.qt.gui.QSizePolicy)&quot;&gt;&lt;tt&gt;setSizePolicy&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By default, composite widgets which do not provide a size hint will be sized according to the space requirements of their child widgets.&lt;/p&gt;
&lt;p&gt;The size policy lets you supply good default behavior for the layout management system, so that other widgets can contain and manage yours easily. The default size policy indicates that the size hint represents the preferred size of the widget, and this is often good enough for many widgets.&lt;/p&gt;
&lt;a name=&quot;events&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Events&lt;/h3&gt;
&lt;p&gt;Widgets respond to events that are typically caused by user actions. Qt delivers events to widgets by calling specific event handler functions with instances of &lt;a href=&quot;%2E%2E/core/QEvent.html&quot;&gt;&lt;tt&gt;QEvent&lt;/tt&gt;&lt;/a&gt; subclasses containing information about each event.&lt;/p&gt;
&lt;p&gt;If your widget only contains child widgets, you probably do not need to implement any event handlers. If you want to detect a mouse click in a child widget call the child's &lt;a href=&quot;QWidget.html#underMouse()&quot;&gt;&lt;tt&gt;underMouse&lt;/tt&gt;&lt;/a&gt; function inside the widget's &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The Scribble example&lt;/tt&gt; implements a wider set of events to handle mouse movement, button presses, and window resizing.&lt;/p&gt;
&lt;p&gt;You will need to supply the behavior and content for your own widgets, but here is a brief overview of the events that are relevant to &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;, starting with the most common ones:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; is called whenever the widget needs to be repainted. Every widget which displays custom content must implement it. Painting using a &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt; can only take place in a &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; or a function called by a &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; is called when the widget has been resized.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt; is called when a mouse button is pressed when the mouse is inside it, or when it has grabbed the mouse using &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt; is called when a mouse button is released. A widget receives mouse release events when it has received the corresponding mouse press event. This means that if the user presses the mouse inside &lt;i&gt;your&lt;/i&gt; widget, then drags the mouse to somewhere else before releasing the mouse button, &lt;i&gt;your&lt;/i&gt; widget receives the release event. There is one exception: if a popup menu appears while the mouse button is held down, this popup immediately steals the mouse events.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt; is called when the user double clicks in the widget. If the user double-clicks, the widget receives a mouse press event, a mouse release event and finally this event instead of a second mouse press event. (Some mouse move events may also be received if the user doesn't hold the mouse steady during this operation.) It is &lt;i&gt;not possible&lt;/i&gt; to distinguish a click from a double click until the second click arrives. (This is one reason why most GUI books recommend that double clicks be an extension of single clicks, rather than trigger a different action.)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Widgets that accept keyboard input need to reimplement a few more event handlers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt; is called whenever a key is pressed, and again when a key has been held down long enough for it to auto-repeat. Note that the &lt;b&gt;Tab&lt;/b&gt; and &lt;b&gt;Shift+Tab&lt;/b&gt; keys are only passed to the widget if they are not used by the focus-change mechanisms. To force those keys to be processed by your widget, you must reimplement QWidget::event().&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt; is called when the widget gains keyboard focus (assuming you have called &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;). Well written widgets indicate that they own the keyboard focus in a clear but discreet way.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt; is called when the widget loses keyboard focus.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some widgets will also need to reimplement some of the less common event handlers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt; is called whenever the mouse moves while a button is held down. This can be useful during drag and drop operations. If you call &lt;a href=&quot;QWidget.html#setMouseTracking(boolean)&quot;&gt;&lt;tt&gt;setMouseTracking&lt;/tt&gt;&lt;/a&gt;(true), you get mouse move events even when no buttons are held down. (See also the guide to &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag and Drop&lt;/tt&gt;&lt;/a&gt;.)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt; is called whenever a key is released, and also while it is held down if the key is auto-repeating. In that case the widget receives a pair of key release and key press events for every repeat. Note that the &lt;b&gt;Tab&lt;/b&gt; and &lt;b&gt;Shift+Tab&lt;/b&gt; keys are only passed to the widget if they are not used by the focus-change mechanisms. To force those keys to be processed by your widget, you must reimplement QWidget::event().&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#wheelEvent(com.trolltech.qt.gui.QWheelEvent)&quot;&gt;&lt;tt&gt;wheelEvent&lt;/tt&gt;&lt;/a&gt; is called whenever the user turns the mouse wheel while the widget has the focus.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#enterEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;enterEvent&lt;/tt&gt;&lt;/a&gt; is called when the mouse enters the widget's screen space. (This excludes screen space owned by any children of the widget.)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#leaveEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;leaveEvent&lt;/tt&gt;&lt;/a&gt; is called when the mouse leaves the widget's screen space. Note that if the mouse enters a child widget it will not cause a &lt;a href=&quot;QWidget.html#leaveEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;leaveEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt; is called when the widget has been moved relative to its parent.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QWidget.html#closeEvent(com.trolltech.qt.gui.QCloseEvent)&quot;&gt;&lt;tt&gt;closeEvent&lt;/tt&gt;&lt;/a&gt; is called when the user closes the widget (or when &lt;a href=&quot;QWidget.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt; is called).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are also some rather obscure events described in the QEvent::Type documentation. You need to reimplement &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; directly to handle these. The default implementation of &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; handles &lt;b&gt;Tab&lt;/b&gt; and &lt;b&gt;Shift+Tab&lt;/b&gt; (to move the keyboard focus), and passes on most other events to one of the more specialized handlers above.&lt;/p&gt;
&lt;p&gt;Events and the mechanism used to deliver them are covered in the &lt;a href=&quot;%2E%2E/eventsandfilters.html&quot;&gt;Events and Event Filters&lt;/tt&gt;&lt;/a&gt; document.&lt;/p&gt;
&lt;a name=&quot;groups-of-functions-and-properties&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Groups of Functions and Properties&lt;/h3&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Context&lt;/th&gt;&lt;th&gt;Functions and Properties&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Window functions&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#raise()&quot;&gt;&lt;tt&gt;raise&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#lower()&quot;&gt;&lt;tt&gt;lower&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Top-level windows&lt;/td&gt;&lt;td&gt;&lt;tt&gt;windowModified&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#windowIconText()&quot;&gt;&lt;tt&gt;windowIconText&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#isActiveWindow()&quot;&gt;&lt;tt&gt;isActiveWindow&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#activateWindow()&quot;&gt;&lt;tt&gt;activateWindow&lt;/tt&gt;&lt;/a&gt;, minimized&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#showMinimized()&quot;&gt;&lt;tt&gt;showMinimized&lt;/tt&gt;&lt;/a&gt;, maximized&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#showMaximized()&quot;&gt;&lt;tt&gt;showMaximized&lt;/tt&gt;&lt;/a&gt;, &lt;tt&gt;fullScreen&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#showFullScreen()&quot;&gt;&lt;tt&gt;showFullScreen&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Window contents&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#scroll(int, int, com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;scroll&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Geometry&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#pos()&quot;&gt;pos&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#rect()&quot;&gt;rect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#sizePolicy()&quot;&gt;&lt;tt&gt;sizePolicy&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#minimumSizeHint()&quot;&gt;&lt;tt&gt;minimumSizeHint&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#updateGeometry()&quot;&gt;&lt;tt&gt;updateGeometry&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#layout()&quot;&gt;&lt;tt&gt;layout&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;geometry&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#childrenRect()&quot;&gt;&lt;tt&gt;childrenRect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#childrenRegion()&quot;&gt;&lt;tt&gt;childrenRegion&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#adjustSize()&quot;&gt;&lt;tt&gt;adjustSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mapFromGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mapFromParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromParent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mapToParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToParent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#baseSize()&quot;&gt;&lt;tt&gt;baseSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setFixedSize(int, int)&quot;&gt;&lt;tt&gt;setFixedSize&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Mode&lt;/td&gt;&lt;td&gt;visible&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#isVisibleTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isVisibleTo&lt;/tt&gt;&lt;/a&gt;, enabled&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#isEnabledTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isEnabledTo&lt;/tt&gt;&lt;/a&gt;, modal&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;&lt;tt&gt;isWindow&lt;/tt&gt;&lt;/a&gt;, &lt;tt&gt;mouseTracking&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#updatesEnabled()&quot;&gt;&lt;tt&gt;updatesEnabled&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#visibleRegion()&quot;&gt;&lt;tt&gt;visibleRegion&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Look and feel&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setStyle(com.trolltech.qt.gui.QStyle)&quot;&gt;&lt;tt&gt;setStyle&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#styleSheet()&quot;&gt;&lt;tt&gt;styleSheet&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#cursor()&quot;&gt;cursor&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#font()&quot;&gt;font&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#palette()&quot;&gt;palette&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#backgroundRole()&quot;&gt;&lt;tt&gt;backgroundRole&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setBackgroundRole(com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;setBackgroundRole&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Keyboard focus functions&lt;/td&gt;&lt;td&gt;focus&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#focusPolicy()&quot;&gt;&lt;tt&gt;focusPolicy&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#clearFocus()&quot;&gt;&lt;tt&gt;clearFocus&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setTabOrder(com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setTabOrder&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setFocusProxy(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setFocusProxy&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#focusNextChild()&quot;&gt;&lt;tt&gt;focusNextChild&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#focusPreviousChild()&quot;&gt;&lt;tt&gt;focusPreviousChild&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Mouse and keyboard grabbing&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#releaseMouse()&quot;&gt;&lt;tt&gt;releaseMouse&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#releaseKeyboard()&quot;&gt;&lt;tt&gt;releaseKeyboard&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mouseGrabber()&quot;&gt;&lt;tt&gt;mouseGrabber&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#keyboardGrabber()&quot;&gt;&lt;tt&gt;keyboardGrabber&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Event handlers&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#wheelEvent(com.trolltech.qt.gui.QWheelEvent)&quot;&gt;&lt;tt&gt;wheelEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#enterEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;enterEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#leaveEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;leaveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#closeEvent(com.trolltech.qt.gui.QCloseEvent)&quot;&gt;&lt;tt&gt;closeEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#dragEnterEvent(com.trolltech.qt.gui.QDragEnterEvent)&quot;&gt;&lt;tt&gt;dragEnterEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#dragMoveEvent(com.trolltech.qt.gui.QDragMoveEvent)&quot;&gt;&lt;tt&gt;dragMoveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#dragLeaveEvent(com.trolltech.qt.gui.QDragLeaveEvent)&quot;&gt;&lt;tt&gt;dragLeaveEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#dropEvent(com.trolltech.qt.gui.QDropEvent)&quot;&gt;&lt;tt&gt;dropEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)&quot;&gt;&lt;tt&gt;childEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#showEvent(com.trolltech.qt.gui.QShowEvent)&quot;&gt;&lt;tt&gt;showEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#hideEvent(com.trolltech.qt.gui.QHideEvent)&quot;&gt;&lt;tt&gt;hideEvent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/core/%2E%2E/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;customEvent&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QWidget.html#changeEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;changeEvent&lt;/tt&gt;&lt;/a&gt;,&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;System functions&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#parentWidget()&quot;&gt;&lt;tt&gt;parentWidget&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setParent(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;setParent&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#winId()&quot;&gt;&lt;tt&gt;winId&lt;/tt&gt;&lt;/a&gt;, find(), &lt;a href=&quot;QWidget.html#metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)&quot;&gt;&lt;tt&gt;metric&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Interactive help&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QWidget.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#setWhatsThis(java.lang.String)&quot;&gt;&lt;tt&gt;setWhatsThis&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;a name=&quot;widget-style-sheets&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Widget Style Sheets&lt;/h3&gt;
&lt;p&gt;In addition to the standard widget styles for each platform, widgets can also be styled according to rules specified in a &lt;a href=&quot;QWidget.html#styleSheet()&quot;&gt;style sheet&lt;/tt&gt;&lt;/a&gt;. This feature enables you to customize the appearance of specific widgets to provide visual cues to users about their purpose; for example, a button could be styled in a particular way to indicate that it performs a destructive action.&lt;/p&gt;
&lt;p&gt;The use of widgets style sheets is described in more detail in &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;a name=&quot;transparency-and-double-buffering&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Transparency and Double Buffering&lt;/h3&gt;
&lt;p&gt;From Qt 4.0, &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; automatically double-buffers its painting, so there's no need to write double-buffering code in &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; to avoid flicker. Additionally, it became possible for widgets to propagate their contents to children, in order to enable transparency effects, by setting the Qt::WA_ContentsPropagated widget attribute - this is now deprecated in Qt 4.1&amp;#x2e;&lt;/p&gt;
&lt;p&gt;In Qt 4.1, the contents of parent widgets are propagated by default to each of their children. Custom widgets can be written to take advantage of this feature by only updating irregular regions (to create non-rectangular child widgets), or by using painting with colors that have less than the full alpha component. The following diagram shows how attributes and properties of a custom widget can be fine-tuned to achieve different effects.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/propagation-custom.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;In the above diagram, a semi-transparent rectangular child widget with an area removed is constructed and added to a parent widget (a &lt;a href=&quot;QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt; showing a pixmap) then different properties and widget attributes are set to achieve different effects:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The left widget has no additional properties or widget attributes set. This default state suits most custom widgets that use transparency or are irregularly-shaped, and that do not paint over their entire area with an opaque brush.&lt;/li&gt;
&lt;li&gt;The center widget has the &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; property set. This property is used with custom widgets that rely on the widget to supply a default background, and do not paint over their entire area with an opaque brush.&lt;/li&gt;
&lt;li&gt;The right widget has the Qt::WA_OpaquePaintEvent widget attribute set. This indicates that the widget will paint over its entire area with opaque colors. The widget's area will initially be &lt;i&gt;uninitialized&lt;/i&gt; (represented in the diagram by a red diagonal grid pattern that shines through the overpainted area). This is useful for widgets that need to paint their own specialized contents quickly and that do not need a default filled background.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For rapidly updating custom widgets with simple background colors, such as real-time plotting or graphing widgets, it is better to define a suitable background color (using &lt;a href=&quot;QWidget.html#setBackgroundRole(com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;setBackgroundRole&lt;/tt&gt;&lt;/a&gt; with the QPalette::Window role), set the &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; property, and only implement the necessary drawing functionality in the widget's &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For rapidly updating custom widgets that constantly paint over their entire areas with opaque content, such as video streaming widgets, it is better to set the widget's Qt::WA_OpaquePaintEvent, avoiding any unnecessary overhead associated with repainting the widget's background.&lt;/p&gt;
&lt;p&gt;If a widget has both the Qt::WA_OpaquePaintEvent widget attribute &lt;i&gt;and&lt;/i&gt; the &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; property set, the Qt::WA_OpaquePaintEvent attribute takes precedence. You should choose just one of these depending on your requirements.&lt;/p&gt;
&lt;p&gt;In Qt 4.1, the contents of parent widgets are also propagated to standard Qt widgets. This can lead to some unexpected results if the parent widget is decorated in a non-standard way, as shown in the diagram below.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/propagation-standard.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;The scope for customizing the painting behavior of standard Qt widgets, without resorting to subclassing, is slightly less than that possible for custom widgets. Usually, the desired appearance of a standard widget can be achieved by setting its &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; property.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/core/QEvent.html&quot;&gt;&lt;tt&gt;QEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGridLayout.html&quot;&gt;&lt;tt&gt;QGridLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBoxLayout.html&quot;&gt;&lt;tt&gt;QBoxLayout&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QWidget(com.trolltech.qt.gui.QWidget parent, com.trolltech.qt.core.Qt.WindowFlags f)" doc="/**
&lt;p&gt;Constructs a widget which is a child of &lt;tt&gt;parent&lt;/tt&gt;, with widget flags set to &lt;tt&gt;f&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;parent&lt;/tt&gt; is 0, the new widget becomes a window. If &lt;tt&gt;parent&lt;/tt&gt; is another widget, this widget becomes a child window inside &lt;tt&gt;parent&lt;/tt&gt;. The new widget is deleted when its &lt;tt&gt;parent&lt;/tt&gt; is deleted.&lt;/p&gt;
&lt;p&gt;The widget flags argument, &lt;tt&gt;f&lt;/tt&gt;, is normally 0, but it can be set to customize the frame of a window (i.e&amp;#x2e; &lt;tt&gt;parent&lt;/tt&gt; must be 0). To customize the frame, use a value composed from the bitwise OR of any of the window flags&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If you add a child widget to an already visible widget you must explicitly show the child to make it visible.&lt;/p&gt;
&lt;p&gt;Note that the X11 version of Qt may not be able to deliver all combinations of style flags on all systems. This is because on X11, Qt can only ask the window manager, and the window manager can override the application's settings. On Windows, Qt can set whatever flags you want.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowFlags()&quot;&gt;&lt;tt&gt;windowFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QWidget(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, 0). */"/>
    <method name="public QWidget()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;(0, 0). */"/>
    <method name="public final boolean acceptDrops()" doc="/**
&lt;p&gt;Returns whether drop events are enabled for this widget.&lt;/p&gt;
&lt;p&gt;Setting this property to true announces to the system that this widget &lt;i&gt;may&lt;/i&gt; be able to accept drop events.&lt;/p&gt;
&lt;p&gt;If the widget is the desktop (&lt;a href=&quot;%2E%2E/porting4.html#qwidget&quot;&gt;&lt;tt&gt;QWidget::&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;QWidget.html#windowType()&quot;&gt;&lt;tt&gt;windowType&lt;/tt&gt;&lt;/a&gt; == Qt::Desktop)), this may fail if another application is using the desktop; you can call &lt;a href=&quot;QWidget.html#acceptDrops()&quot;&gt;&lt;tt&gt;acceptDrops&lt;/tt&gt;&lt;/a&gt; to test if this occurs.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not modify this property in a Drag&amp;amp;Drop event handler.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setAcceptDrops(boolean)&quot;&gt;&lt;tt&gt;setAcceptDrops&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String accessibleDescription()" doc="/**
&lt;p&gt;Returns the widget's description as seen by assistive technologies.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setAccessibleDescription(java.lang.String)&quot;&gt;&lt;tt&gt;setAccessibleDescription&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAccessibleInterface::text&lt;/tt&gt; */"/>
    <method name="public final java.lang.String accessibleName()" doc="/**
&lt;p&gt;Returns the widget's name as seen by assistive technologies.&lt;/p&gt;
&lt;p&gt;It is be used by accessible clients to identify, find, or announce the widget for accessible clients.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setAccessibleName(java.lang.String)&quot;&gt;&lt;tt&gt;setAccessibleName&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAccessibleInterface::text&lt;/tt&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.gui.QAction&gt; actions()" doc="/**
&lt;p&gt;Returns the (possibly empty) list of this widget's actions.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#insertAction(com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;insertAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#removeAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;removeAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void activateWindow()" doc="/**
&lt;p&gt;Sets the top-level widget containing this widget to be the active window.&lt;/p&gt;
&lt;p&gt;An active window is a visible top-level window that has the keyboard input focus.&lt;/p&gt;
&lt;p&gt;This function performs the same operation as clicking the mouse on the title bar of a top-level window. On X11, the result depends on the Window Manager. If you want to ensure that the window is stacked on top as well you should also call &lt;a href=&quot;QWidget.html#raise()&quot;&gt;&lt;tt&gt;raise&lt;/tt&gt;&lt;/a&gt;. Note that the window must be visible, otherwise &lt;a href=&quot;QWidget.html#activateWindow()&quot;&gt;&lt;tt&gt;activateWindow&lt;/tt&gt;&lt;/a&gt; has no effect.&lt;/p&gt;
&lt;p&gt;On Windows, if you are calling this when the application is not currently the active one then it will not make it the active window. It will change the color of the taskbar entry to indicate that the window has changed in some way. This is because Microsoft do not allow an application to interrupt what the user is currently doing in another application.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#isActiveWindow()&quot;&gt;&lt;tt&gt;isActiveWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addAction(com.trolltech.qt.gui.QAction action)" doc="/**
&lt;p&gt;Appends the action &lt;tt&gt;action&lt;/tt&gt; to this widget's list of actions.&lt;/p&gt;
&lt;p&gt;All QWidgets have a list of &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt;s, however they can be represented graphically in many different ways. The default use of the &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; list (as returned by &lt;a href=&quot;QWidget.html#actions()&quot;&gt;&lt;tt&gt;actions&lt;/tt&gt;&lt;/a&gt;) is to create a context &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; should only have one of each action.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#removeAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;removeAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#insertAction(com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;insertAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#actions()&quot;&gt;&lt;tt&gt;actions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addActions(java.util.List&lt;com.trolltech.qt.gui.QAction&gt; actions)" doc="/**
&lt;p&gt;Appends the actions &lt;tt&gt;actions&lt;/tt&gt; to this widget's list of actions.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#removeAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;removeAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#addAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;addAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void adjustSize()" doc="/**
&lt;p&gt;Adjusts the size of the widget to fit the contents.&lt;/p&gt;
&lt;p&gt;Uses &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; if valid (i.e if the size hint's width and height are &amp;gt;= 0); otherwise sets the size to the children rectangle that covers all child widgets (the union of all child widget rectangles). For top-level widgets, the screen size is also taken into account.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#childrenRect()&quot;&gt;&lt;tt&gt;childrenRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean autoFillBackground()" doc="/**
&lt;p&gt;Returns whether the widget background is filled automatically.&lt;/p&gt;
&lt;p&gt;If enabled, this will cause Qt to fill the background using the widget's background role before invoking the paint event. The background role is defined by the widget's &lt;a href=&quot;QWidget.html#palette()&quot;&gt;palette&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In addition, Windows are always filled with QPalette::Window, unless the WA_OpaquePaintEvent or WA_NoSystemBackground attributes are set.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not set this property when using &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt;. When using style sheets, the widget is always filled with the &amp;quot;background&amp;quot; property. The &amp;quot;border-radius&amp;quot; property may be used to clip the background.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setAutoFillBackground(boolean)&quot;&gt;&lt;tt&gt;setAutoFillBackground&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::WA_OpaquePaintEvent&lt;/tt&gt;
@see &lt;tt&gt;Qt::WA_NoSystemBackground&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPalette.ColorRole backgroundRole()" doc="/**
&lt;p&gt;Returns the background role of the widget.&lt;/p&gt;
&lt;p&gt;The background role defines the brush from the widget's &lt;a href=&quot;QWidget.html#palette()&quot;&gt;palette&lt;/tt&gt;&lt;/a&gt; that is used to render the background.&lt;/p&gt;
&lt;p&gt;If no explicit background role is set, the widget inherts its parent widget's background role.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setBackgroundRole(com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;setBackgroundRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#foregroundRole()&quot;&gt;&lt;tt&gt;foregroundRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize baseSize()" doc="/**
&lt;p&gt;Returns the base size of the widget.&lt;/p&gt;
&lt;p&gt;The base size is used to calculate a proper widget size if the widget defines &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setBaseSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setBaseSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setSizeIncrement(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget childAt(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Returns the visible child widget at point &lt;tt&gt;p&lt;/tt&gt; in the widget's own coordinate system.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QWidget childAt(int x, int y)" doc="/**
&lt;p&gt;Returns the visible child widget at the position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) in the widget's coordinate system. If there is no visible child widget at the specified position, the function returns 0.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRect childrenRect()" doc="/**
&lt;p&gt;Returns the bounding rectangle of the widget's children.&lt;/p&gt;
&lt;p&gt;Hidden children are excluded.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#childrenRegion()&quot;&gt;&lt;tt&gt;childrenRegion&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;&lt;tt&gt;geometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QRegion childrenRegion()" doc="/**
&lt;p&gt;Returns the combined region occupied by the widget's children.&lt;/p&gt;
&lt;p&gt;Hidden children are excluded.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#childrenRect()&quot;&gt;&lt;tt&gt;childrenRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;&lt;tt&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mask()&quot;&gt;&lt;tt&gt;mask&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clearFocus()" doc="/**
&lt;p&gt;Takes keyboard input focus from the widget.&lt;/p&gt;
&lt;p&gt;If the widget has active focus, a &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;focus out event&lt;/tt&gt;&lt;/a&gt; is sent to this widget to tell it that it is about to lose the focus.&lt;/p&gt;
&lt;p&gt;This widget must enable focus setting in order to get the keyboard input focus, i.e&amp;#x2e; it must call &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::focusWidget&lt;/tt&gt; */"/>
    <method name="public final void clearMask()" doc="/**
&lt;p&gt;Removes any mask set by &lt;a href=&quot;QWidget.html#setMask(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMask(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean close()" doc="/**
&lt;p&gt;Closes this widget. Returns true if the widget was closed; otherwise returns false.&lt;/p&gt;
&lt;p&gt;First it sends the widget a &lt;a href=&quot;QCloseEvent.html&quot;&gt;&lt;tt&gt;QCloseEvent&lt;/tt&gt;&lt;/a&gt;. The widget is &lt;a href=&quot;QWidget.html#hide()&quot;&gt;hidden&lt;/tt&gt;&lt;/a&gt; if it accepts&lt;/tt&gt; the close event. If it ignores&lt;/tt&gt; the event, nothing happens. The default implementation of QWidget::closeEvent() accepts the close event.&lt;/p&gt;
&lt;p&gt;If the widget has the Qt::WA_DeleteOnClose flag, the widget is also deleted. A close events is delivered to the widget no matter if the widget is visible or not.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;QApplication::lastWindowClosed&lt;/tt&gt; signal is emitted when the last visible primary window (i.e&amp;#x2e; window with no parent) with the Qt::WA_QuitOnClose attribute set is closed. By default this attribute is set for all widgets except transient windows such as splash screens, tool windows, and popup menus.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRect contentsRect()" doc="/**
&lt;p&gt;Returns the area inside the widget's margins.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setContentsMargins(int, int, int, int)&quot;&gt;&lt;tt&gt;setContentsMargins&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getContentsMargins&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ContextMenuPolicy contextMenuPolicy()" doc="/**
&lt;p&gt;Returns how the widget shows a context menu.&lt;/p&gt;
&lt;p&gt;The default value of this property is Qt::DefaultContextMenu, which means the &lt;a href=&quot;QWidget.html#contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent)&quot;&gt;&lt;tt&gt;contextMenuEvent&lt;/tt&gt;&lt;/a&gt; handler is called. Other values are Qt::NoContextMenu, Qt::PreventContextMenu, Qt::ActionsContextMenu, and Qt::CustomContextMenu. With Qt::CustomContextMenu, the signal &lt;a href=&quot;QWidget.html#customContextMenuRequested(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;customContextMenuRequested&lt;/tt&gt;&lt;/a&gt; is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setContextMenuPolicy(com.trolltech.qt.core.Qt.ContextMenuPolicy)&quot;&gt;&lt;tt&gt;setContextMenuPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent)&quot;&gt;&lt;tt&gt;contextMenuEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#customContextMenuRequested(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;customContextMenuRequested&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#actions()&quot;&gt;&lt;tt&gt;actions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void createWinId()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QCursor cursor()" doc="/**
&lt;p&gt;Returns the cursor shape for this widget.&lt;/p&gt;
&lt;p&gt;The mouse cursor will assume this shape when it's over this widget. See the list of predefined cursor objects&lt;/tt&gt; for a range of useful shapes.&lt;/p&gt;
&lt;p&gt;An editor widget might use an I-beam cursor:&lt;/p&gt;
&lt;pre&gt;    setCursor(Qt::IBeamCursor);&lt;/pre&gt;
&lt;p&gt;If no cursor has been set, or after a call to &lt;a href=&quot;QWidget.html#unsetCursor()&quot;&gt;&lt;tt&gt;unsetCursor&lt;/tt&gt;&lt;/a&gt;, the parent's cursor is used.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setCursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::setOverrideCursor&lt;/tt&gt; */"/>
    <method name="public final int depth()" doc="/**
&lt;p&gt;Returns the bit depth (number of bit planes) of the paint device.&lt;/p&gt;
 */"/>
    <method name="protected final void destroy(boolean destroyWindow, boolean destroySubWindows)" doc="/**
&lt;p&gt;Frees up window system resources. Destroys the widget window if &lt;tt&gt;destroyWindow&lt;/tt&gt; is true.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#destroy(boolean, boolean)&quot;&gt;&lt;tt&gt;destroy&lt;/tt&gt;&lt;/a&gt; calls itself recursively for all the child widgets, passing &lt;tt&gt;destroySubWindows&lt;/tt&gt; for the &lt;tt&gt;destroyWindow&lt;/tt&gt; parameter. To have more control over destruction of subwidgets, destroy subwidgets selectively first.&lt;/p&gt;
&lt;p&gt;This function is usually called from the &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; destructor.&lt;/p&gt;
 */"/>
    <method name="protected final void destroy(boolean destroyWindow)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#destroy(boolean, boolean)&quot;&gt;destroy&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;destroyWindow&lt;/tt&gt;, true). */"/>
    <method name="protected final void destroy()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#destroy(boolean, boolean)&quot;&gt;destroy&lt;/tt&gt;&lt;/a&gt;(true, true). */"/>
    <method name="public final void ensurePolished()" doc="/**
&lt;p&gt;Ensures that the widget has been polished by &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; (i.e&amp;#x2e;, has a proper font and palette).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; calls this function after it has been fully constructed but before it is shown the very first time. You can call this function if you want to ensure that the widget is polished before doing an operation, e.g&amp;#x2e;, the correct font size might be needed in the widget's &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; reimplementation. Note that this function &lt;i&gt;is&lt;/i&gt; called from the default implementation of &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Polishing is useful for final initialization that must happen after all constructors (from base classes as well as from subclasses) have been called.&lt;/p&gt;
&lt;p&gt;If you need to change some settings when a widget is polished, reimplement &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; and handle the QEvent::Polish event type.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The function is declared const so that it can be called from other const functions (e.g&amp;#x2e;, &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final boolean focusNextChild()" doc="/**
&lt;p&gt;Finds a new widget to give the keyboard focus to, as appropriate for &lt;b&gt;Tab&lt;/b&gt;, and returns true if it can find a new widget, or false if it can't.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#focusPreviousChild()&quot;&gt;&lt;tt&gt;focusPreviousChild&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.FocusPolicy focusPolicy()" doc="/**
&lt;p&gt;Returns the way the widget accepts keyboard focus.&lt;/p&gt;
&lt;p&gt;The policy is Qt::TabFocus if the widget accepts keyboard focus by tabbing, Qt::ClickFocus if the widget accepts focus by clicking, Qt::StrongFocus if it accepts both, and Qt::NoFocus (the default) if it does not accept focus at all.&lt;/p&gt;
&lt;p&gt;You must enable keyboard focus for a widget if it processes keyboard events. This is normally done from the widget's constructor. For instance, the &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; constructor calls &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;(Qt::StrongFocus).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see enabled&lt;/tt&gt; */"/>
    <method name="protected final boolean focusPreviousChild()" doc="/**
&lt;p&gt;Finds a new widget to give the keyboard focus to, as appropriate for &lt;b&gt;Shift+Tab&lt;/b&gt;, and returns true if it can find a new widget, or false if it can't.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#focusNextChild()&quot;&gt;&lt;tt&gt;focusNextChild&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget focusProxy()" doc="/**
&lt;p&gt;Returns the focus proxy, or 0 if there is no focus proxy.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setFocusProxy(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setFocusProxy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget focusWidget()" doc="/**
&lt;p&gt;Returns the last child of this widget that &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; had been called on. For top level widgets this is the widget that will get focus in case this window gets activated&lt;/p&gt;
&lt;p&gt;This is not the same as QApplication::focusWidget(), which returns the focus widget in the currently active window.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the font currently set for the widget.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QWidget.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt; function reports the actual font that is being used by the widget.&lt;/p&gt;
&lt;p&gt;As long as no special font has been set, or after &lt;a href=&quot;QWidget.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/porting4.html#qfont&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;) is called, this is either a special font for the widget class, the parent's font or (if this widget is a top level widget), the default application font.&lt;/p&gt;
&lt;p&gt;This code fragment sets a 12 point helvetica bold font:&lt;/p&gt;
&lt;pre&gt;    QFont font(&amp;quot;Helvetica&amp;quot;, 12, QFont::Bold);
    setFont(font);&lt;/pre&gt;
&lt;p&gt;Note that when a child widget is given a different font to that of its parent widget, it will still inherit the parent's font &lt;i&gt;properties&lt;/i&gt; unless these have been set explicitly on the child's font. For example, if the parent's font is bold, the child widget's font will be bold as well if not specified otherwise like this:&lt;/p&gt;
&lt;pre&gt;    QFont font;
    font.setBold(false);
    setFont(font);&lt;/pre&gt;
&lt;p&gt;In addition to setting the font, &lt;a href=&quot;QWidget.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; informs all children about the change.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not use this function in conjunction with &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt;. The font of a widget can be customized using the &amp;quot;font&amp;quot; style sheet property.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFontInfo fontInfo()" doc="/**
&lt;p&gt;Returns the font info for the widget's current font. Equivalent to QFontInto(widget-&amp;gt;&lt;a href=&quot;QWidget.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFontMetrics fontMetrics()" doc="/**
&lt;p&gt;Returns the font metrics for the widget's current font. Equivalent to &lt;a href=&quot;QFontMetrics.html&quot;&gt;&lt;tt&gt;QFontMetrics&lt;/tt&gt;&lt;/a&gt;(widget-&amp;gt;&lt;a href=&quot;QWidget.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPalette.ColorRole foregroundRole()" doc="/**
&lt;p&gt;Returns the foreground role.&lt;/p&gt;
&lt;p&gt;The foreground role defines the color from the widget's &lt;a href=&quot;QWidget.html#palette()&quot;&gt;palette&lt;/tt&gt;&lt;/a&gt; that is used to draw the foreground.&lt;/p&gt;
&lt;p&gt;If no explicit foreground role is set, the function returns a role that contrasts with the background role.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setForegroundRole(com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;setForegroundRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#backgroundRole()&quot;&gt;&lt;tt&gt;backgroundRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect frameGeometry()" doc="/**
&lt;p&gt;Returns geometry of the widget relative to its parent including any window frame.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of geometry issues with windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;&lt;tt&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize frameSize()" doc="/**
&lt;p&gt;Returns the size of the widget including any window frame.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRect geometry()" doc="/**
&lt;p&gt;Returns the geometry of the widget relative to its parent and excluding the window frame.&lt;/p&gt;
&lt;p&gt;When changing the geometry, the widget, if visible, receives a move event (&lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;) and/or a resize event (&lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive appropriate events before it is shown.&lt;/p&gt;
&lt;p&gt;The size component is adjusted if it lies outside the range defined by &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void grabKeyboard()" doc="/**
&lt;p&gt;Grabs the keyboard input.&lt;/p&gt;
&lt;p&gt;This widget receives all keyboard events until &lt;a href=&quot;QWidget.html#releaseKeyboard()&quot;&gt;&lt;tt&gt;releaseKeyboard&lt;/tt&gt;&lt;/a&gt; is called; other widgets get no keyboard events at all. Mouse events are not affected. Use &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt; if you want to grab that.&lt;/p&gt;
&lt;p&gt;The focus widget is not affected, except that it doesn't receive any keyboard events. &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; moves the focus as usual, but the new focus widget receives keyboard events only after &lt;a href=&quot;QWidget.html#releaseKeyboard()&quot;&gt;&lt;tt&gt;releaseKeyboard&lt;/tt&gt;&lt;/a&gt; is called.&lt;/p&gt;
&lt;p&gt;If a different widget is currently grabbing keyboard input, that widget's grab is released first.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#releaseKeyboard()&quot;&gt;&lt;tt&gt;releaseKeyboard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#releaseMouse()&quot;&gt;&lt;tt&gt;releaseMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusWidget()&quot;&gt;&lt;tt&gt;focusWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void grabMouse()" doc="/**
&lt;p&gt;Grabs the mouse input.&lt;/p&gt;
&lt;p&gt;This widget receives all mouse events until &lt;a href=&quot;QWidget.html#releaseMouse()&quot;&gt;&lt;tt&gt;releaseMouse&lt;/tt&gt;&lt;/a&gt; is called; other widgets get no mouse events at all. Keyboard events are not affected. Use &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt; if you want to grab that.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Bugs in mouse-grabbing applications very often lock the terminal. Use this function with extreme caution, and consider using the &lt;tt&gt;-nograb&lt;/tt&gt; command line option while debugging.&lt;/p&gt;
&lt;p&gt;It is almost never necessary to grab the mouse when using Qt, as Qt grabs and releases it sensibly. In particular, Qt grabs the mouse when a mouse button is pressed and keeps it until the last button is released.&lt;/p&gt;
&lt;p&gt;Note that only visible widgets can grab mouse input. If &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; returns false for a widget, that widget cannot call &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#focusWidget()&quot;&gt;&lt;tt&gt;focusWidget&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#releaseMouse()&quot;&gt;&lt;tt&gt;releaseMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#releaseKeyboard()&quot;&gt;&lt;tt&gt;releaseKeyboard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void grabMouse(com.trolltech.qt.gui.QCursor arg__1)" doc="/**
&lt;p&gt;Grabs the mouse input and changes the cursor shape.&lt;/p&gt;
&lt;p&gt;The cursor will assume shape &lt;tt&gt;arg__1&lt;/tt&gt; (for as long as the mouse focus is grabbed) and this widget will be the only one to receive mouse events until &lt;a href=&quot;QWidget.html#releaseMouse()&quot;&gt;&lt;tt&gt;releaseMouse&lt;/tt&gt;&lt;/a&gt; is called().&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Grabbing the mouse might lock the terminal.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#releaseMouse()&quot;&gt;&lt;tt&gt;releaseMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#releaseKeyboard()&quot;&gt;&lt;tt&gt;releaseKeyboard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setCursor(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;setCursor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int grabShortcut(com.trolltech.qt.gui.QKeySequence key, com.trolltech.qt.core.Qt.ShortcutContext context)" doc="/**
&lt;p&gt;Adds a shortcut to Qt's shortcut system that watches for the given &lt;tt&gt;key&lt;/tt&gt; sequence in the given &lt;tt&gt;context&lt;/tt&gt;. If the &lt;tt&gt;context&lt;/tt&gt; is not &lt;tt&gt;OnApplication&lt;/tt&gt;, the shortcut is local to this widget; otherwise it applies to the application as a whole.&lt;/p&gt;
&lt;p&gt;If the same &lt;tt&gt;key&lt;/tt&gt; sequence has been grabbed by several widgets, when the &lt;tt&gt;key&lt;/tt&gt; sequence occurs a QEvent::Shortcut event is sent to all the widgets to which it applies in a non-deterministic order, but with the ``ambiguous'' flag set to true.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; You should not normally need to use this function; instead create &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt;s with the shortcut key sequences you require (if you also want equivalent menu options and toolbar buttons), or create &lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt;s if you just need key sequences. Both &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt; handle all the event filtering for you, and provide signals which are triggered when the user triggers the key sequence, so are much easier to use than this low-level function.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#releaseShortcut(int)&quot;&gt;&lt;tt&gt;releaseShortcut&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setShortcutEnabled(int, boolean)&quot;&gt;&lt;tt&gt;setShortcutEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int grabShortcut(com.trolltech.qt.gui.QKeySequence key)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#grabShortcut(com.trolltech.qt.gui.QKeySequence, com.trolltech.qt.core.Qt.ShortcutContext)&quot;&gt;&lt;tt&gt;grabShortcut&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;key&lt;/tt&gt;, Qt::WindowShortcut). */"/>
    <method name="public final boolean hasFocus()" doc="/**
&lt;p&gt;Returns whether this widget (or its focus proxy) has the keyboard input focus.&lt;/p&gt;
&lt;p&gt;Effectively equivalent to &lt;tt&gt;QApplication::focusWidget() == this&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#clearFocus()&quot;&gt;&lt;tt&gt;clearFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::focusWidget&lt;/tt&gt; */"/>
    <method name="public final boolean hasMouseTracking()" doc="/**
&lt;p&gt;Returns whether mouse tracking is enabled for the widget.&lt;/p&gt;
&lt;p&gt;If mouse tracking is disabled (the default), the widget only receives mouse move events when at least one mouse button is pressed while the mouse is being moved.&lt;/p&gt;
&lt;p&gt;If mouse tracking is enabled, the widget receives mouse move events even if no buttons are pressed.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int height()" doc="/**
&lt;p&gt;Returns the height of the widget excluding any window frame.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#width()&quot;&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int heightMM()" doc="/**
&lt;p&gt;Returns the height of the paint device in millimeters.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void hide()" doc="/**
&lt;p&gt;Hides the widget. This function is equivalent to &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#hideEvent(com.trolltech.qt.gui.QHideEvent)&quot;&gt;&lt;tt&gt;hideEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isHidden()&quot;&gt;&lt;tt&gt;isHidden&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QInputContext inputContext()" doc="/**
&lt;p&gt;This function returns the &lt;a href=&quot;QInputContext.html&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; for this widget. By default the input context is inherited from the widgets parent. For toplevels it is inherited from &lt;a href=&quot;QApplication.html&quot;&gt;&lt;tt&gt;QApplication&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can override this and set a special input context for this widget by using the &lt;a href=&quot;QWidget.html#setInputContext(com.trolltech.qt.gui.QInputContext)&quot;&gt;&lt;tt&gt;setInputContext&lt;/tt&gt;&lt;/a&gt; method.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setInputContext(com.trolltech.qt.gui.QInputContext)&quot;&gt;&lt;tt&gt;setInputContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertAction(com.trolltech.qt.gui.QAction before, com.trolltech.qt.gui.QAction action)" doc="/**
&lt;p&gt;Inserts the action &lt;tt&gt;action&lt;/tt&gt; to this widget's list of actions, before the action &lt;tt&gt;before&lt;/tt&gt;. It appends the action if &lt;tt&gt;before&lt;/tt&gt; is 0 or &lt;tt&gt;before&lt;/tt&gt; is not a valid action for this widget.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; should only have one of each action.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#removeAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;removeAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#addAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;addAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#actions()&quot;&gt;&lt;tt&gt;actions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertActions(com.trolltech.qt.gui.QAction before, java.util.List&lt;com.trolltech.qt.gui.QAction&gt; actions)" doc="/**
&lt;p&gt;Inserts the actions &lt;tt&gt;actions&lt;/tt&gt; to this widget's list of actions, before the action &lt;tt&gt;before&lt;/tt&gt;. It appends the action if &lt;tt&gt;before&lt;/tt&gt; is 0 or &lt;tt&gt;before&lt;/tt&gt; is not a valid action for this widget.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; can have at most one of each action.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#removeAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;removeAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#insertAction(com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;insertAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isActiveWindow()" doc="/**
&lt;p&gt;Returns whether this widget's window is the active window.&lt;/p&gt;
&lt;p&gt;The active window is the window that contains the widget that has keyboard focus (The window may still have focus if it has no widgets or none of its widgets accepts keyboard focus).&lt;/p&gt;
&lt;p&gt;When popup windows are visible, this property is true for both the active window &lt;i&gt;and&lt;/i&gt; for the popup.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#activateWindow()&quot;&gt;&lt;tt&gt;activateWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::activeWindow&lt;/tt&gt; */"/>
    <method name="public final boolean isAncestorOf(com.trolltech.qt.gui.QWidget child)" doc="/**
&lt;p&gt;Returns true if this widget is a parent, (or grandparent and so on to any level), of the given &lt;tt&gt;child&lt;/tt&gt;, and both widgets are within the same window; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isEnabled()" doc="/**
&lt;p&gt;Returns whether the widget is enabled.&lt;/p&gt;
&lt;p&gt;An enabled widget handles keyboard and mouse events; a disabled widget does not.&lt;/p&gt;
&lt;p&gt;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 use the &lt;a href=&quot;QWidget.html#changeEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;changeEvent&lt;/tt&gt;&lt;/a&gt; with type QEvent::EnabledChange.&lt;/p&gt;
&lt;p&gt;Disabling a widget implicitly disables all its children. Enabling respectively enables all child widgets unless they have been explicitly disabled.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#isEnabledTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isEnabledTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#changeEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;changeEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isEnabledTo(com.trolltech.qt.gui.QWidget arg__1)" doc="/**
&lt;p&gt;Returns true if this widget would become enabled if &lt;tt&gt;arg__1&lt;/tt&gt; is enabled; otherwise returns false.&lt;/p&gt;
&lt;p&gt;This is the case if neither the widget itself nor every parent up to but excluding &lt;tt&gt;arg__1&lt;/tt&gt; has been explicitly disabled.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#isEnabledTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isEnabledTo&lt;/tt&gt;&lt;/a&gt;(0) is equivalent to &lt;a href=&quot;QWidget.html#isEnabled()&quot;&gt;&lt;tt&gt;isEnabled&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setEnabled(boolean)&quot;&gt;&lt;tt&gt;setEnabled&lt;/tt&gt;&lt;/a&gt;
@see enabled&lt;/tt&gt; */"/>
    <method name="public final boolean isFullScreen()" doc="/**
&lt;p&gt;Returns whether the widget is full screen.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowState()&quot;&gt;&lt;tt&gt;windowState&lt;/tt&gt;&lt;/a&gt;
@see minimized&lt;/tt&gt;
@see maximized&lt;/tt&gt; */"/>
    <method name="public final boolean isHidden()" doc="/**
&lt;p&gt;Returns true if the widget is hidden, otherwise returns false.&lt;/p&gt;
&lt;p&gt;A hidden widget will only become visible when &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; is called on it. It will not be automatically shown when the parent is shown.&lt;/p&gt;
&lt;p&gt;To check visiblity, use !&lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; instead (notice the exclamation mark).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#isHidden()&quot;&gt;&lt;tt&gt;isHidden&lt;/tt&gt;&lt;/a&gt; implies !&lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt;, but a widget can be not visible and not hidden at the same time. This is the case for widgets that are children of widgets that are not visible.&lt;/p&gt;
&lt;p&gt;Widgets are hidden if they were created as independent windows or as children of visible widgets, or if &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false) was called.&lt;/p&gt;
 */"/>
    <method name="public final boolean isLeftToRight()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final boolean isMaximized()" doc="/**
&lt;p&gt;Returns whether this widget is maximized.&lt;/p&gt;
&lt;p&gt;This property is only relevant for windows.&lt;/p&gt;
&lt;p&gt;Note that due to limitations in some window-systems, this does not always report the expected results (e.g&amp;#x2e; if the user on X11 maximizes the window via the window manager, Qt has no way of distinguishing this from any other resize). This is expected to improve as window manager protocols evolve.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowState()&quot;&gt;&lt;tt&gt;windowState&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMaximized()&quot;&gt;&lt;tt&gt;showMaximized&lt;/tt&gt;&lt;/a&gt;
@see visible&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;
@see minimized&lt;/tt&gt; */"/>
    <method name="public final boolean isMinimized()" doc="/**
&lt;p&gt;Returns whether this widget is minimized (iconified).&lt;/p&gt;
&lt;p&gt;This property is only relevant for windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#showMinimized()&quot;&gt;&lt;tt&gt;showMinimized&lt;/tt&gt;&lt;/a&gt;
@see visible&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;
@see maximized&lt;/tt&gt; */"/>
    <method name="public final boolean isModal()" doc="/**
&lt;p&gt;Returns whether the widget is a modal widget.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. A modal widget prevents widgets in all other windows from getting any input.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;&lt;tt&gt;isWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowModality()&quot;&gt;&lt;tt&gt;windowModality&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isRightToLeft()" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final boolean isVisible()" doc="/**
&lt;p&gt;Returns whether the widget is visible.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(true) or &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; sets the widget to visible status if all its parent widgets up to the window are visible. If an ancestor is not visible, the widget won't become visible until all its ancestors are shown. If its size or position has changed, Qt guarantees that a widget gets move and resize events just before it is shown. If the widget has not been resized yet, Qt will adjust the widget's size to a useful default using &lt;a href=&quot;QWidget.html#adjustSize()&quot;&gt;&lt;tt&gt;adjustSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false) or &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; hides a widget explicitly. An explicitly hidden widget will never become visible, even if all its ancestors become visible, unless you show it.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;A widget that happens to be obscured by other windows on the screen is considered to be visible. The same applies to iconified windows 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&amp;#x2e; a spontaneous hide event when the user minimizes the window, and a spontaneous show event when the window is restored again.&lt;/p&gt;
&lt;p&gt;You almost never have to reimplement the &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt; function. If you need to change some settings before a widget is shown, use &lt;a href=&quot;QWidget.html#showEvent(com.trolltech.qt.gui.QShowEvent)&quot;&gt;&lt;tt&gt;showEvent&lt;/tt&gt;&lt;/a&gt; instead. If you need to do some delayed initialization use the Polish event delivered to the &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isHidden()&quot;&gt;&lt;tt&gt;isHidden&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisibleTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isVisibleTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isMinimized()&quot;&gt;&lt;tt&gt;isMinimized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showEvent(com.trolltech.qt.gui.QShowEvent)&quot;&gt;&lt;tt&gt;showEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hideEvent(com.trolltech.qt.gui.QHideEvent)&quot;&gt;&lt;tt&gt;hideEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isVisibleTo(com.trolltech.qt.gui.QWidget arg__1)" doc="/**
&lt;p&gt;Returns true if this widget would become visible if &lt;tt&gt;arg__1&lt;/tt&gt; is shown; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The true case occurs if neither the widget itself nor any parent up to but excluding &lt;tt&gt;arg__1&lt;/tt&gt; has been explicitly hidden.&lt;/p&gt;
&lt;p&gt;This function will still return true if the widget is obscured by other windows on the screen, but could be physically visible if it or they were to be moved.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#isVisibleTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isVisibleTo&lt;/tt&gt;&lt;/a&gt;(0) is identical to &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isWindow()" doc="/**
&lt;p&gt;Returns true if the widget is an independent window, otherwise returns false.&lt;/p&gt;
&lt;p&gt;A window is a widget that isn't visually the child of any other widget and that usually has a frame and a window title&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;A window can have a parent widget&lt;/tt&gt;. It will then be grouped with its parent and deleted when the parent is deleted, minimized when the parent is minimized etc. If supported by the window manager, it will also have a common taskbar entry with its parent.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QMainWindow.html&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; widgets are by default windows, even if a parent widget is specified in the constructor. This behavior is specified by the &lt;a href=&quot;%2E%2E/winsystem.html#qt-windows&quot;&gt;Qt::Window&lt;/tt&gt;&lt;/a&gt; flag.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#window()&quot;&gt;&lt;tt&gt;window&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isModal()&quot;&gt;&lt;tt&gt;isModal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#parentWidget()&quot;&gt;&lt;tt&gt;parentWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isWindowModified()" doc="/**
&lt;p&gt;Returns whether the document shown in the window has unsaved changes.&lt;/p&gt;
&lt;p&gt;A modified window is a window whose content has changed but has not been saved to disk. This flag will have different effects varied by the platform. On Mac OS X the close button will have a modified look; on other platforms, the window title will have an '*' (asterisk).&lt;/p&gt;
&lt;p&gt;The window title must contain a &amp;quot;[*]&amp;quot; placeholder, which indicates where the '*' should appear. Normally, it should appear right after the file name (e.g&amp;#x2e;, &amp;quot;document1.txt[*] - Text Editor&amp;quot;). If the window isn't modified, the placeholder is simply removed.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-application.html&quot;&gt;Application Example&lt;/tt&gt;&lt;/a&gt;
@see SDI Example&lt;/tt&gt;
@see MDI Example&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QLayout layout()" doc="/**
&lt;p&gt;Returns the layout manager that is installed on this widget, or 0 if no layout manager is installed.&lt;/p&gt;
&lt;p&gt;The layout manager sets the geometry of the widget's children that have been added to the layout.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setLayout(com.trolltech.qt.gui.QLayout)&quot;&gt;&lt;tt&gt;setLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizePolicy()&quot;&gt;&lt;tt&gt;sizePolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/layout.html&quot;&gt;Layout Classes&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.LayoutDirection layoutDirection()" doc="/**
&lt;p&gt;Returns the layout direction for this widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection)&quot;&gt;&lt;tt&gt;setLayoutDirection&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::layoutDirection&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QLocale locale()" doc="/**
&lt;p&gt;Returns the widget's locale.&lt;/p&gt;
&lt;p&gt;As long as no special locale has been set, this is either the parent's locale or (if this widget is a top level widget), the default locale.&lt;/p&gt;
&lt;p&gt;If the widget displays dates or numbers, these should be formatted using the widget's locale.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setLocale(com.trolltech.qt.core.QLocale)&quot;&gt;&lt;tt&gt;setLocale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QLocale.html&quot;&gt;&lt;tt&gt;QLocale&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QLocale::setDefault&lt;/tt&gt; */"/>
    <method name="public final int logicalDpiX()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from &lt;a href=&quot;QWidget.html#widthMM()&quot;&gt;&lt;tt&gt;widthMM&lt;/tt&gt;&lt;/a&gt;, but it varies on Windows.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QWidget.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QWidget.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int logicalDpiY()" doc="/**
&lt;p&gt;Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from &lt;a href=&quot;QWidget.html#heightMM()&quot;&gt;&lt;tt&gt;heightMM&lt;/tt&gt;&lt;/a&gt;, but it varies on Windows.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QWidget.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QWidget.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void lower()" doc="/**
&lt;p&gt;Lowers the widget to the bottom of the parent widget's stack.&lt;/p&gt;
&lt;p&gt;After this call the widget will be visually behind (and therefore obscured by) any overlapping sibling widgets.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#raise()&quot;&gt;&lt;tt&gt;raise&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#stackUnder(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;stackUnder&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint mapFrom(com.trolltech.qt.gui.QWidget arg__1, com.trolltech.qt.core.QPoint arg__2)" doc="/**
&lt;p&gt;Translates the widget coordinate &lt;tt&gt;arg__2&lt;/tt&gt; from the coordinate system of &lt;tt&gt;arg__1&lt;/tt&gt; to this widget's coordinate system. The &lt;tt&gt;arg__1&lt;/tt&gt; must not be 0 and must be a parent of the calling widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mapTo(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapFromParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromParent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapFromGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromGlobal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#underMouse()&quot;&gt;&lt;tt&gt;underMouse&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint mapFromGlobal(com.trolltech.qt.core.QPoint arg__1)" doc="/**
&lt;p&gt;Translates the global screen coordinate &lt;tt&gt;arg__1&lt;/tt&gt; to widget coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapFrom(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFrom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapFromParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromParent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint mapFromParent(com.trolltech.qt.core.QPoint arg__1)" doc="/**
&lt;p&gt;Translates the parent widget coordinate &lt;tt&gt;arg__1&lt;/tt&gt; to widget coordinates.&lt;/p&gt;
&lt;p&gt;Same as &lt;a href=&quot;QWidget.html#mapFromGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromGlobal&lt;/tt&gt;&lt;/a&gt; if the widget has no parent.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mapToParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToParent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapFrom(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFrom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapFromGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromGlobal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#underMouse()&quot;&gt;&lt;tt&gt;underMouse&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint mapTo(com.trolltech.qt.gui.QWidget arg__1, com.trolltech.qt.core.QPoint arg__2)" doc="/**
&lt;p&gt;Translates the widget coordinate &lt;tt&gt;arg__2&lt;/tt&gt; to the coordinate system of &lt;tt&gt;arg__1&lt;/tt&gt;. The &lt;tt&gt;arg__1&lt;/tt&gt; must not be 0 and must be a parent of the calling widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mapFrom(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFrom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapToParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToParent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#underMouse()&quot;&gt;&lt;tt&gt;underMouse&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint mapToGlobal(com.trolltech.qt.core.QPoint arg__1)" doc="/**
&lt;p&gt;Translates the widget coordinate &lt;tt&gt;arg__1&lt;/tt&gt; to global screen coordinates. For example, &lt;tt&gt;mapToGlobal(QPoint(0,0))&lt;/tt&gt; would give the global coordinates of the top-left pixel of the widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mapFromGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromGlobal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapTo(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapToParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToParent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint mapToParent(com.trolltech.qt.core.QPoint arg__1)" doc="/**
&lt;p&gt;Translates the widget coordinate &lt;tt&gt;arg__1&lt;/tt&gt; to a coordinate in the parent widget.&lt;/p&gt;
&lt;p&gt;Same as &lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt; if the widget has no parent.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mapFromParent(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapFromParent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapTo(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#underMouse()&quot;&gt;&lt;tt&gt;underMouse&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QRegion mask()" doc="/**
&lt;p&gt;Returns the mask currently set on a widget. If no mask is set the return value will be an empty region.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMask(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#clearMask()&quot;&gt;&lt;tt&gt;clearMask&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QRegion::isEmpty&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-shapedclock.html&quot;&gt;Shaped Clock Example&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int maximumHeight()" doc="/**
&lt;p&gt;Returns the widget's maximum height.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;. It is limited by the QWIDGETSIZE_MAX macro, i.e&amp;#x2e; the largest allowed height is 16777215.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMaximumHeight(int)&quot;&gt;&lt;tt&gt;setMaximumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize maximumSize()" doc="/**
&lt;p&gt;Returns the widget's maximum size.&lt;/p&gt;
&lt;p&gt;The widget cannot be resized to a larger size than the maximum widget size.&lt;/p&gt;
&lt;p&gt;The property is limited by the QWIDGETSIZE_MAX macro, i.e&amp;#x2e; the largest allowed size is &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(16777215, 16777215).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMaximumSize(int, int)&quot;&gt;&lt;tt&gt;setMaximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumHeight()&quot;&gt;&lt;tt&gt;maximumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int maximumWidth()" doc="/**
&lt;p&gt;Returns the widget's maximum width.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;. It is limited by the QWIDGETSIZE_MAX macro, i.e&amp;#x2e; the largest allowed width is 16777215.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMaximumWidth(int)&quot;&gt;&lt;tt&gt;setMaximumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumHeight()&quot;&gt;&lt;tt&gt;maximumHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int minimumHeight()" doc="/**
&lt;p&gt;Returns the widget's minimum height.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMinimumHeight(int)&quot;&gt;&lt;tt&gt;setMinimumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize minimumSize()" doc="/**
&lt;p&gt;Returns the widget's minimum size.&lt;/p&gt;
&lt;p&gt;The widget cannot be resized to a smaller size than the minimum widget size. The widget's size is forced to the minimum size if the current size is smaller.&lt;/p&gt;
&lt;p&gt;The minimum size set by this function will override the minimum size defined by &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMinimumSize(int, int)&quot;&gt;&lt;tt&gt;setMinimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumHeight()&quot;&gt;&lt;tt&gt;minimumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int minimumWidth()" doc="/**
&lt;p&gt;Returns the widget's minimum width.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMinimumWidth(int)&quot;&gt;&lt;tt&gt;setMinimumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumHeight()&quot;&gt;&lt;tt&gt;minimumHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void move(int x, int y)" doc="/**
&lt;p&gt;Sets the position of the widget within its parent widget.&lt;/p&gt;
&lt;p&gt;If the widget is a window, the position is that of the widget on the desktop, including its frame.&lt;/p&gt;
&lt;p&gt;When changing the position, the widget, if visible, receives a move event (&lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void move(com.trolltech.qt.core.QPoint arg__1)" doc="/**
&lt;p&gt;Sets the position of the widget within its parent widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the widget is a window, the position is that of the widget on the desktop, including its frame.&lt;/p&gt;
&lt;p&gt;When changing the position, the widget, if visible, receives a move event (&lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget nextInFocusChain()" doc="/**
&lt;p&gt;Returns the next widget in this widget's focus chain.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRect normalGeometry()" doc="/**
&lt;p&gt;Returns the geometry of the widget as it will appear when shown as a normal (not maximized or fullscreen) toplevel widget.&lt;/p&gt;
&lt;p&gt;For child widgets this property always holds an empty rect.&lt;/p&gt;

@see &lt;tt&gt;QWidget::windowState&lt;/tt&gt;
@see &lt;tt&gt;QWidget::geometry&lt;/tt&gt; */"/>
    <method name="public final int numColors()" doc="/**
&lt;p&gt;Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.&lt;/p&gt;
 */"/>
    <method name="public final void overrideWindowFlags(com.trolltech.qt.core.Qt.WindowFlags type)" doc="/**
&lt;p&gt;Sets the window flags for the widget to &lt;tt&gt;type&lt;/tt&gt;, &lt;i&gt;without&lt;/i&gt; telling the window system.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not call this function unless you really know what you're doing.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowFlags(com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;setWindowFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void overrideWindowState(com.trolltech.qt.core.Qt.WindowStates state)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public final boolean paintingActive()" doc="/**
&lt;p&gt;Returns true if the device is currently being painted on, i.e&amp;#x2e; someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.&lt;/p&gt;

@see &lt;tt&gt;QPainter::isActive&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPalette palette()" doc="/**
&lt;p&gt;Returns the widget's palette.&lt;/p&gt;
&lt;p&gt;As long as no special palette has been set, this is either a special palette for the widget class, the parent's palette or (if this widget is a top level widget), the default application palette.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The palette's background color will only have an effect on the appearance of the widget if the &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; property is set.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not use this function in conjunction with &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt;. When using style sheets, the palette of a widget can be customized using the &amp;quot;color&amp;quot;, &amp;quot;background-color&amp;quot;, &amp;quot;selection-color&amp;quot;, &amp;quot;selection-background-color&amp;quot; and &amp;quot;alternate-background-color&amp;quot;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setPalette(com.trolltech.qt.gui.QPalette)&quot;&gt;&lt;tt&gt;setPalette&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::palette&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget parentWidget()" doc="/**
&lt;p&gt;Returns the parent of this widget, or 0 if it does not have any parent widget.&lt;/p&gt;
 */"/>
    <method name="public final int physicalDpiX()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QWidget.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QWidget.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#logicalDpiX()&quot;&gt;&lt;tt&gt;logicalDpiX&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int physicalDpiY()" doc="/**
&lt;p&gt;Returns the horizontal resolution of the device in dots per inch.&lt;/p&gt;
&lt;p&gt;Note that if the &lt;a href=&quot;QWidget.html#physicalDpiY()&quot;&gt;&lt;tt&gt;physicalDpiY&lt;/tt&gt;&lt;/a&gt; doesn't equal the &lt;a href=&quot;QWidget.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt;, the corresponding &lt;a href=&quot;QPaintEngine.html&quot;&gt;&lt;tt&gt;QPaintEngine&lt;/tt&gt;&lt;/a&gt; must handle the resolution mapping.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#physicalDpiX()&quot;&gt;&lt;tt&gt;physicalDpiX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#logicalDpiY()&quot;&gt;&lt;tt&gt;logicalDpiY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint pos()" doc="/**
&lt;p&gt;Returns the position of the widget within its parent widget.&lt;/p&gt;
&lt;p&gt;If the widget is a window, the position is that of the widget on the desktop, including its frame.&lt;/p&gt;
&lt;p&gt;When changing the position, the widget, if visible, receives a move event (&lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void raise()" doc="/**
&lt;p&gt;Raises this widget to the top of the parent widget's stack.&lt;/p&gt;
&lt;p&gt;After this call the widget will be visually in front of any overlapping sibling widgets.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#lower()&quot;&gt;&lt;tt&gt;lower&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#stackUnder(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;stackUnder&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect rect()" doc="/**
&lt;p&gt;Returns the internal geometry of the widget excluding any window frame.&lt;/p&gt;
&lt;p&gt;The rect property equals &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;(0, 0, &lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void releaseKeyboard()" doc="/**
&lt;p&gt;Releases the keyboard grab.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#releaseMouse()&quot;&gt;&lt;tt&gt;releaseMouse&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void releaseMouse()" doc="/**
&lt;p&gt;Releases the mouse grab.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#releaseKeyboard()&quot;&gt;&lt;tt&gt;releaseKeyboard&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void releaseShortcut(int id)" doc="/**
&lt;p&gt;Removes the shortcut with the given &lt;tt&gt;id&lt;/tt&gt; from Qt's shortcut system. The widget will no longer receive QEvent::Shortcut events for the shortcut's key sequence (unless it has other shortcuts with the same key sequence).&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; You should not normally need to use this function since Qt's shortcut system removes shortcuts automatically when their parent widget is destroyed. It is best to use &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt; to handle shortcuts, since they are easier to use than this low-level function. Note also that this is an expensive operation.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#grabShortcut(com.trolltech.qt.gui.QKeySequence, com.trolltech.qt.core.Qt.ShortcutContext)&quot;&gt;&lt;tt&gt;grabShortcut&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setShortcutEnabled(int, boolean)&quot;&gt;&lt;tt&gt;setShortcutEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeAction(com.trolltech.qt.gui.QAction action)" doc="/**
&lt;p&gt;Removes the action &lt;tt&gt;action&lt;/tt&gt; from this widget's list of actions.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#insertAction(com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;insertAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#actions()&quot;&gt;&lt;tt&gt;actions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#insertAction(com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;insertAction&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPaintDeviceInterface target, com.trolltech.qt.core.QPoint targetOffset, com.trolltech.qt.gui.QRegion sourceRegion, com.trolltech.qt.gui.QWidget.RenderFlags renderFlags)" doc="/**
&lt;p&gt;Renders the &lt;tt&gt;sourceRegion&lt;/tt&gt; of this widget into the &lt;tt&gt;target&lt;/tt&gt; using &lt;tt&gt;renderFlags&lt;/tt&gt; to determine how to render. Rendering starts at &lt;tt&gt;targetOffset&lt;/tt&gt; in the &lt;tt&gt;target&lt;/tt&gt;. For example:&lt;/p&gt;
&lt;pre&gt;    QPixmap pixmap(widget-&amp;gt;size());
    widget-&amp;gt;render(&amp;amp;pixmap);&lt;/pre&gt;
&lt;p&gt;If &lt;tt&gt;sourceRegion&lt;/tt&gt; is a null region, this function will use QWidget::rect() as the region, i.e&amp;#x2e; the entire widget.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; Make sure to call QPainter::end() for the given &lt;tt&gt;target&lt;/tt&gt;'s active painter (if any) before rendering. For example:&lt;/p&gt;
&lt;pre&gt;    QPainter painter(this);
    ...
    painter.end();
    myWidget-&amp;gt;render(this);&lt;/pre&gt;
 */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPaintDeviceInterface target, com.trolltech.qt.core.QPoint targetOffset, com.trolltech.qt.gui.QRegion sourceRegion)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#render(com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.core.QPoint, com.trolltech.qt.gui.QRegion, com.trolltech.qt.gui.QWidget.RenderFlags)&quot;&gt;render&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;target&lt;/tt&gt;, &lt;tt&gt;targetOffset&lt;/tt&gt;, &lt;tt&gt;sourceRegion&lt;/tt&gt;, RenderFlags( DrawWindowBackground | DrawChildren )). */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPaintDeviceInterface target, com.trolltech.qt.core.QPoint targetOffset)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#render(com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.core.QPoint, com.trolltech.qt.gui.QRegion, com.trolltech.qt.gui.QWidget.RenderFlags)&quot;&gt;render&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;target&lt;/tt&gt;, &lt;tt&gt;targetOffset&lt;/tt&gt;, QRegion(), RenderFlags( DrawWindowBackground | DrawChildren )). */"/>
    <method name="public final void render(com.trolltech.qt.gui.QPaintDeviceInterface target)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#render(com.trolltech.qt.gui.QPaintDeviceInterface, com.trolltech.qt.core.QPoint, com.trolltech.qt.gui.QRegion, com.trolltech.qt.gui.QWidget.RenderFlags)&quot;&gt;render&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;target&lt;/tt&gt;, QPoint(), QRegion(), RenderFlags( DrawWindowBackground | DrawChildren )). */"/>
    <method name="public final void repaint(int x, int y, int w, int h)" doc="/**
&lt;p&gt;This version repaints a rectangle (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;) inside the widget.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;w&lt;/tt&gt; is negative, it is replaced with &lt;tt&gt;width() - x&lt;/tt&gt;, and if &lt;tt&gt;h&lt;/tt&gt; is negative, it is replaced width &lt;tt&gt;height() - y&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void repaint(com.trolltech.qt.gui.QRegion arg__1)" doc="/**
&lt;p&gt;This version repaints a region &lt;tt&gt;arg__1&lt;/tt&gt; inside the widget.&lt;/p&gt;
 */"/>
    <method name="public final void repaint(com.trolltech.qt.core.QRect arg__1)" doc="/**
&lt;p&gt;This version repaints a rectangle &lt;tt&gt;arg__1&lt;/tt&gt; inside the widget.&lt;/p&gt;
 */"/>
    <method name="public final void repaint()" doc="/**
&lt;p&gt;Repaints the widget directly by calling &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; immediately, unless updates are disabled or the widget is hidden.&lt;/p&gt;
&lt;p&gt;We suggest only using &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; if you need an immediate repaint, for example during animation. In almost all circumstances &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; is better, as it permits Qt to optimize for speed and minimize flicker.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If you call &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; in a function which may itself be called from &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;, you may get infinite recursion. The &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; function never causes recursion.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setUpdatesEnabled(boolean)&quot;&gt;&lt;tt&gt;setUpdatesEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void resetInputContext()" doc="/**
&lt;p&gt;This function can be called on the widget that currently has focus to reset the input method operating on it.&lt;/p&gt;

@see &lt;a href=&quot;QInputContext.html&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QInputContext::reset&lt;/tt&gt; */"/>
    <method name="public final void resize(int w, int h)" doc="/**
&lt;p&gt;Sets the size of the widget excluding any window frame.&lt;/p&gt;
&lt;p&gt;If the widget is visible when it is being resized, it receives a resize event (&lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.&lt;/p&gt;
&lt;p&gt;The size is adjusted if it lies outside the range defined by &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;Note that setting size to &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(0, 0) will cause the widget to not appear on screen. This also applies to windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#pos()&quot;&gt;pos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void resize(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Sets the size of the widget excluding any window frame to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If the widget is visible when it is being resized, it receives a resize event (&lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.&lt;/p&gt;
&lt;p&gt;The size is adjusted if it lies outside the range defined by &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;Note that setting size to &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(0, 0) will cause the widget to not appear on screen. This also applies to windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#pos()&quot;&gt;pos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean restoreGeometry(com.trolltech.qt.core.QByteArray geometry)" doc="/**
&lt;p&gt;Restores the geometry and state top-level widgets stored in the byte array &lt;tt&gt;geometry&lt;/tt&gt;. Returns true on success; otherwise returns false.&lt;/p&gt;
&lt;p&gt;If the restored geometry is off-screen, it will be modified to be inside the the available screen geometry.&lt;/p&gt;
&lt;p&gt;To restore geometry saved using &lt;a href=&quot;%2E%2E/core/QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt;, you can use code like this:&lt;/p&gt;
&lt;pre&gt;    QSettings settings(&amp;quot;MyCompany&amp;quot;, &amp;quot;MyApp&amp;quot;);
    myWidget-&amp;gt;restoreGeometry(settings.value(&amp;quot;myWidget/geometry&amp;quot;).toByteArray());&lt;/pre&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of geometry issues with windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#saveGeometry()&quot;&gt;&lt;tt&gt;saveGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QSettings.html&quot;&gt;&lt;tt&gt;QSettings&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray saveGeometry()" doc="/**
&lt;p&gt;Saves the current geometry and state for top-level widgets.&lt;/p&gt;
&lt;p&gt;To save the geometry when the window closes, you can implement a close event like this:&lt;/p&gt;
&lt;pre&gt;    void MyWidget::closeEvent(QCloseEvent *event)
    {
        QSettings settings(&amp;quot;MyCompany&amp;quot;, &amp;quot;MyApp&amp;quot;);
        settings.setValue(&amp;quot;geometry&amp;quot;, saveGeometry());
        QWidget::closeEvent(event);
    }&lt;/pre&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of geometry issues with windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#restoreGeometry(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;restoreGeometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void scroll(int dx, int dy)" doc="/**
&lt;p&gt;Scrolls the widget including its children &lt;tt&gt;dx&lt;/tt&gt; pixels to the right and &lt;tt&gt;dy&lt;/tt&gt; downward. Both &lt;tt&gt;dx&lt;/tt&gt; and &lt;tt&gt;dy&lt;/tt&gt; may be negative.&lt;/p&gt;
&lt;p&gt;After scrolling, the widgets will receive paint events for the areas that need to be repainted. For widgets that Qt knows to be opaque, this is only the newly exposed parts. For example, if an opaque widget is scrolled 8 pixels to the left, only an 8-pixel wide stripe at the right edge needs updating.&lt;/p&gt;
&lt;p&gt;Since widgets propagate the contents of their parents by default, you need to set the &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; property, or use &lt;a href=&quot;QWidget.html#setAttribute(com.trolltech.qt.core.Qt.WidgetAttribute, boolean)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt; to set the Qt::WA_OpaquePaintEvent attribute, to make a widget opaque.&lt;/p&gt;
&lt;p&gt;For widgets that use contents propagation, a scroll will cause an update of the entire scroll area.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#transparency-and-double-buffering&quot;&gt;Transparency and Double Buffering&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void scroll(int dx, int dy, com.trolltech.qt.core.QRect arg__3)" doc="/**
&lt;p&gt;This version only scrolls &lt;tt&gt;arg__3&lt;/tt&gt; and does not move the children of the widget.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;arg__3&lt;/tt&gt; is empty or invalid, the result is undefined.&lt;/p&gt;

@see &lt;a href=&quot;QScrollArea.html&quot;&gt;&lt;tt&gt;QScrollArea&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;bitBlt&lt;/tt&gt; */"/>
    <method name="public final void setAcceptDrops(boolean on)" doc="/**
&lt;p&gt;Sets whether drop events are enabled for this widget to &lt;tt&gt;on&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Setting this property to true announces to the system that this widget &lt;i&gt;may&lt;/i&gt; be able to accept drop events.&lt;/p&gt;
&lt;p&gt;If the widget is the desktop (&lt;a href=&quot;%2E%2E/porting4.html#qwidget&quot;&gt;&lt;tt&gt;QWidget::&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;QWidget.html#windowType()&quot;&gt;&lt;tt&gt;windowType&lt;/tt&gt;&lt;/a&gt; == Qt::Desktop)), this may fail if another application is using the desktop; you can call &lt;a href=&quot;QWidget.html#acceptDrops()&quot;&gt;&lt;tt&gt;acceptDrops&lt;/tt&gt;&lt;/a&gt; to test if this occurs.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not modify this property in a Drag&amp;amp;Drop event handler.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#acceptDrops()&quot;&gt;&lt;tt&gt;acceptDrops&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAccessibleDescription(java.lang.String description)" doc="/**
&lt;p&gt;Sets the widget's description as seen by assistive technologies to &lt;tt&gt;description&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#accessibleDescription()&quot;&gt;&lt;tt&gt;accessibleDescription&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAccessibleInterface::text&lt;/tt&gt; */"/>
    <method name="public final void setAccessibleName(java.lang.String name)" doc="/**
&lt;p&gt;Sets the widget's name as seen by assistive technologies to &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;It is be used by accessible clients to identify, find, or announce the widget for accessible clients.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#accessibleName()&quot;&gt;&lt;tt&gt;accessibleName&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QAccessibleInterface::text&lt;/tt&gt; */"/>
    <method name="public final void setAttribute(com.trolltech.qt.core.Qt.WidgetAttribute arg__1, boolean on)" doc="/**
&lt;p&gt;Sets the attribute &lt;tt&gt;arg__1&lt;/tt&gt; on this widget if &lt;tt&gt;on&lt;/tt&gt; is true; otherwise clears the attribute.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#testAttribute(com.trolltech.qt.core.Qt.WidgetAttribute)&quot;&gt;&lt;tt&gt;testAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAttribute(com.trolltech.qt.core.Qt.WidgetAttribute arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#setAttribute(com.trolltech.qt.core.Qt.WidgetAttribute, boolean)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, true). */"/>
    <method name="public final void setAutoFillBackground(boolean enabled)" doc="/**
&lt;p&gt;Sets whether the widget background is filled automatically to &lt;tt&gt;enabled&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If enabled, this will cause Qt to fill the background using the widget's background role before invoking the paint event. The background role is defined by the widget's &lt;a href=&quot;QWidget.html#palette()&quot;&gt;palette&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In addition, Windows are always filled with QPalette::Window, unless the WA_OpaquePaintEvent or WA_NoSystemBackground attributes are set.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not set this property when using &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt;. When using style sheets, the widget is always filled with the &amp;quot;background&amp;quot; property. The &amp;quot;border-radius&amp;quot; property may be used to clip the background.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::WA_OpaquePaintEvent&lt;/tt&gt;
@see &lt;tt&gt;Qt::WA_NoSystemBackground&lt;/tt&gt; */"/>
    <method name="public final void setBackgroundRole(com.trolltech.qt.gui.QPalette.ColorRole arg__1)" doc="/**
&lt;p&gt;Sets the background role of the widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The background role defines the brush from the widget's &lt;a href=&quot;QWidget.html#palette()&quot;&gt;palette&lt;/tt&gt;&lt;/a&gt; that is used to render the background.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is QPalette::NoRole, then the widget inherits its parent's background role.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#backgroundRole()&quot;&gt;&lt;tt&gt;backgroundRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#foregroundRole()&quot;&gt;&lt;tt&gt;foregroundRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBaseSize(int basew, int baseh)" doc="/**
&lt;p&gt;Sets the base size of the widget.&lt;/p&gt;
&lt;p&gt;The base size is used to calculate a proper widget size if the widget defines &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setSizeIncrement(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBaseSize(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Sets the base size of the widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The base size is used to calculate a proper widget size if the widget defines &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#baseSize()&quot;&gt;&lt;tt&gt;baseSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setSizeIncrement(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setContentsMargins(int left, int top, int right, int bottom)" doc="/**
&lt;p&gt;Sets the margins around the contents of the widget to have the sizes &lt;tt&gt;left&lt;/tt&gt;, &lt;tt&gt;top&lt;/tt&gt;, &lt;tt&gt;right&lt;/tt&gt;, and &lt;tt&gt;bottom&lt;/tt&gt;. The margins are used by the layout system, and may be used by subclasses to specify the area to draw in (e.g&amp;#x2e; excluding the frame).&lt;/p&gt;
&lt;p&gt;Changing the margins will trigger a &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#contentsRect()&quot;&gt;&lt;tt&gt;contentsRect&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getContentsMargins&lt;/tt&gt; */"/>
    <method name="public final void setContextMenuPolicy(com.trolltech.qt.core.Qt.ContextMenuPolicy policy)" doc="/**
&lt;p&gt;Sets how the widget shows a context menu to &lt;tt&gt;policy&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value of this property is Qt::DefaultContextMenu, which means the &lt;a href=&quot;QWidget.html#contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent)&quot;&gt;&lt;tt&gt;contextMenuEvent&lt;/tt&gt;&lt;/a&gt; handler is called. Other values are Qt::NoContextMenu, Qt::PreventContextMenu, Qt::ActionsContextMenu, and Qt::CustomContextMenu. With Qt::CustomContextMenu, the signal &lt;a href=&quot;QWidget.html#customContextMenuRequested(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;customContextMenuRequested&lt;/tt&gt;&lt;/a&gt; is emitted.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent)&quot;&gt;&lt;tt&gt;contextMenuEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#customContextMenuRequested(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;customContextMenuRequested&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#actions()&quot;&gt;&lt;tt&gt;actions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCursor(com.trolltech.qt.gui.QCursor arg__1)" doc="/**
&lt;p&gt;Sets the cursor shape for this widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The mouse cursor will assume this shape when it's over this widget. See the list of predefined cursor objects&lt;/tt&gt; for a range of useful shapes.&lt;/p&gt;
&lt;p&gt;An editor widget might use an I-beam cursor:&lt;/p&gt;
&lt;pre&gt;    setCursor(Qt::IBeamCursor);&lt;/pre&gt;
&lt;p&gt;If no cursor has been set, or after a call to &lt;a href=&quot;QWidget.html#unsetCursor()&quot;&gt;&lt;tt&gt;unsetCursor&lt;/tt&gt;&lt;/a&gt;, the parent's cursor is used.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#cursor()&quot;&gt;&lt;tt&gt;cursor&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::setOverrideCursor&lt;/tt&gt; */"/>
    <method name="public final void setDisabled(boolean arg__1)" doc="/**
&lt;p&gt;Disables widget input events if &lt;tt&gt;arg__1&lt;/tt&gt; is true; otherwise enables input events.&lt;/p&gt;
&lt;p&gt;See the enabled&lt;/tt&gt; documentation for more information.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#isEnabledTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isEnabledTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#changeEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;changeEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setEnabled(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the widget is enabled to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;An enabled widget handles keyboard and mouse events; a disabled widget does not.&lt;/p&gt;
&lt;p&gt;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 use the &lt;a href=&quot;QWidget.html#changeEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;changeEvent&lt;/tt&gt;&lt;/a&gt; with type QEvent::EnabledChange.&lt;/p&gt;
&lt;p&gt;Disabling a widget implicitly disables all its children. Enabling respectively enables all child widgets unless they have been explicitly disabled.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#isEnabledTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isEnabledTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#changeEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;changeEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFixedHeight(int h)" doc="/**
&lt;p&gt;Sets both the minimum and maximum heights of the widget to &lt;tt&gt;h&lt;/tt&gt; without changing the widths. Provided for convenience.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFixedSize(int, int)&quot;&gt;&lt;tt&gt;setFixedSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFixedSize(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Sets both the minimum and maximum sizes of the widget to &lt;tt&gt;arg__1&lt;/tt&gt;, thereby preventing it from ever growing or shrinking.&lt;/p&gt;
&lt;p&gt;This will override the default size constraints set by &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Alternatively, if you want the widget to have a fixed size based on its contents, you can call QLayout::setSizeConstraint(QLayout::SetFixedSize);&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFixedSize(int w, int h)" doc="/**
&lt;p&gt;Sets the width of the widget to &lt;tt&gt;w&lt;/tt&gt; and the height to &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void setFixedWidth(int w)" doc="/**
&lt;p&gt;Sets both the minimum and maximum width of the widget to &lt;tt&gt;w&lt;/tt&gt; without changing the heights. Provided for convenience.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFixedSize(int, int)&quot;&gt;&lt;tt&gt;setFixedSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFocus(com.trolltech.qt.core.Qt.FocusReason reason)" doc="/**
&lt;p&gt;Gives the keyboard input focus to this widget (or its focus proxy) if this widget or one of its parents is the &lt;a href=&quot;QWidget.html#isActiveWindow()&quot;&gt;active window&lt;/tt&gt;&lt;/a&gt;. The &lt;tt&gt;reason&lt;/tt&gt; argument will be passed into any focus event sent from this function, it is used to give an explanation of what caused the widget to get focus.&lt;/p&gt;
&lt;p&gt;First, a focus out event is sent to the focus widget (if any) to tell it that it is about to lose the focus. Then a focus in event is sent to this widget to tell it that it just received the focus. (Nothing happens if the focus in and focus out widgets are the same.)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; gives focus to a widget regardless of its focus policy, but does not clear any keyboard grab (see &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Be aware that if the widget is hidden, it will not accept focus until it is shown.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; If you call &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; in a function which may itself be called from &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;, you may get an infinite recursion.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt; QApplication::focusWidget() &lt;a href=&quot;QWidget.html#grabKeyboard()&quot;&gt;&lt;tt&gt;grabKeyboard&lt;/tt&gt;&lt;/a&gt; &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;, {Keyboard Focus}&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#clearFocus()&quot;&gt;&lt;tt&gt;clearFocus&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFocus()" doc="/**
&lt;p&gt;Gives the keyboard input focus to this widget (or its focus proxy) if this widget or one of its parents is the &lt;a href=&quot;QWidget.html#isActiveWindow()&quot;&gt;active window&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy policy)" doc="/**
&lt;p&gt;Sets the way the widget accepts keyboard focus to &lt;tt&gt;policy&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The policy is Qt::TabFocus if the widget accepts keyboard focus by tabbing, Qt::ClickFocus if the widget accepts focus by clicking, Qt::StrongFocus if it accepts both, and Qt::NoFocus (the default) if it does not accept focus at all.&lt;/p&gt;
&lt;p&gt;You must enable keyboard focus for a widget if it processes keyboard events. This is normally done from the widget's constructor. For instance, the &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; constructor calls &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;(Qt::StrongFocus).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#focusPolicy()&quot;&gt;&lt;tt&gt;focusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see enabled&lt;/tt&gt; */"/>
    <method name="public final void setFocusProxy(com.trolltech.qt.gui.QWidget arg__1)" doc="/**
&lt;p&gt;Sets the widget's focus proxy to widget &lt;tt&gt;arg__1&lt;/tt&gt;. If &lt;tt&gt;arg__1&lt;/tt&gt; is 0, the function resets this widget to have no focus proxy.&lt;/p&gt;
&lt;p&gt;Some widgets can &amp;quot;have focus&amp;quot;, but create a child widget, such as &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, to actually handle the focus. In this case, the widget can set the line edit to be its focus proxy.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#setFocusProxy(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setFocusProxy&lt;/tt&gt;&lt;/a&gt; sets the widget which will actually get focus when &amp;quot;this widget&amp;quot; gets it. If there is a focus proxy, &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#hasFocus()&quot;&gt;&lt;tt&gt;hasFocus&lt;/tt&gt;&lt;/a&gt; operate on the focus proxy.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#focusProxy()&quot;&gt;&lt;tt&gt;focusProxy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(com.trolltech.qt.gui.QFont arg__1)" doc="/**
&lt;p&gt;Sets the font currently set for the widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QWidget.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt; function reports the actual font that is being used by the widget.&lt;/p&gt;
&lt;p&gt;As long as no special font has been set, or after &lt;a href=&quot;QWidget.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;%2E%2E/porting4.html#qfont&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt;) is called, this is either a special font for the widget class, the parent's font or (if this widget is a top level widget), the default application font.&lt;/p&gt;
&lt;p&gt;This code fragment sets a 12 point helvetica bold font:&lt;/p&gt;
&lt;pre&gt;    QFont font(&amp;quot;Helvetica&amp;quot;, 12, QFont::Bold);
    setFont(font);&lt;/pre&gt;
&lt;p&gt;Note that when a child widget is given a different font to that of its parent widget, it will still inherit the parent's font &lt;i&gt;properties&lt;/i&gt; unless these have been set explicitly on the child's font. For example, if the parent's font is bold, the child widget's font will be bold as well if not specified otherwise like this:&lt;/p&gt;
&lt;pre&gt;    QFont font;
    font.setBold(false);
    setFont(font);&lt;/pre&gt;
&lt;p&gt;In addition to setting the font, &lt;a href=&quot;QWidget.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; informs all children about the change.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not use this function in conjunction with &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt;. The font of a widget can be customized using the &amp;quot;font&amp;quot; style sheet property.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#fontInfo()&quot;&gt;&lt;tt&gt;fontInfo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#fontMetrics()&quot;&gt;&lt;tt&gt;fontMetrics&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setForegroundRole(com.trolltech.qt.gui.QPalette.ColorRole arg__1)" doc="/**
&lt;p&gt;Sets the foreground role of the widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The foreground role defines the color from the widget's &lt;a href=&quot;QWidget.html#palette()&quot;&gt;palette&lt;/tt&gt;&lt;/a&gt; that is used to draw the foreground.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; is QPalette::NoRole, the widget uses a foreground role that contrasts with the background role.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#foregroundRole()&quot;&gt;&lt;tt&gt;foregroundRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#backgroundRole()&quot;&gt;&lt;tt&gt;backgroundRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setGeometry(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Sets the geometry of the widget relative to its parent and excluding the window frame.&lt;/p&gt;
&lt;p&gt;When changing the geometry, the widget, if visible, receives a move event (&lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;) and/or a resize event (&lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive appropriate events before it is shown.&lt;/p&gt;
&lt;p&gt;The size component is adjusted if it lies outside the range defined by &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setGeometry(com.trolltech.qt.core.QRect arg__1)" doc="/**
&lt;p&gt;Sets the geometry of the widget relative to its parent and excluding the window frame to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When changing the geometry, the widget, if visible, receives a move event (&lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;) and/or a resize event (&lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive appropriate events before it is shown.&lt;/p&gt;
&lt;p&gt;The size component is adjusted if it lies outside the range defined by &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;&lt;tt&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHidden(boolean hidden)" doc="/**
&lt;p&gt;Convenience function, equivalent to &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(!&lt;tt&gt;hidden&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#isHidden()&quot;&gt;&lt;tt&gt;isHidden&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setInputContext(com.trolltech.qt.gui.QInputContext arg__1)" doc="/**
&lt;p&gt;This function sets the input context &lt;tt&gt;arg__1&lt;/tt&gt; on this widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#inputContext()&quot;&gt;&lt;tt&gt;inputContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setLayout(com.trolltech.qt.gui.QLayout arg__1)" doc="/**
&lt;p&gt;Sets the layout manager for this widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If there already is a layout manager installed on this widget, &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; won't let you install another. You must first delete the existing layout manager (returned by &lt;a href=&quot;QWidget.html#layout()&quot;&gt;&lt;tt&gt;layout&lt;/tt&gt;&lt;/a&gt;) before you can call &lt;a href=&quot;QWidget.html#setLayout(com.trolltech.qt.gui.QLayout)&quot;&gt;&lt;tt&gt;setLayout&lt;/tt&gt;&lt;/a&gt; with the new layout.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;        QVBoxLayout *layout = new QVBoxLayout;
        layout-&amp;gt;addWidget(lcd);
        layout-&amp;gt;addWidget(slider);
        setLayout(layout);&lt;/pre&gt;
&lt;p&gt;An alternative to calling this function is to pass this widget to the layout's constructor.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; will take ownership of &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#layout()&quot;&gt;&lt;tt&gt;layout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/layout.html&quot;&gt;Layout Classes&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setLayoutDirection(com.trolltech.qt.core.Qt.LayoutDirection direction)" doc="/**
&lt;p&gt;Sets the layout direction for this widget to &lt;tt&gt;direction&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QApplication::layoutDirection&lt;/tt&gt; */"/>
    <method name="public final void setLocale(com.trolltech.qt.core.QLocale locale)" doc="/**
&lt;p&gt;Sets the widget's locale to &lt;tt&gt;locale&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;As long as no special locale has been set, this is either the parent's locale or (if this widget is a top level widget), the default locale.&lt;/p&gt;
&lt;p&gt;If the widget displays dates or numbers, these should be formatted using the widget's locale.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#locale()&quot;&gt;&lt;tt&gt;locale&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QLocale.html&quot;&gt;&lt;tt&gt;QLocale&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QLocale::setDefault&lt;/tt&gt; */"/>
    <method name="public final void setMask(com.trolltech.qt.gui.QBitmap arg__1)" doc="/**
&lt;p&gt;Causes only the pixels of the widget for which &lt;tt&gt;arg__1&lt;/tt&gt; has a corresponding 1 bit to be visible. If the region includes pixels outside the &lt;a href=&quot;QWidget.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt; of the widget, window system controls in that area may or may not be visible, depending on the platform.&lt;/p&gt;
&lt;p&gt;Note that this effect can be slow if the region is particularly complex.&lt;/p&gt;
&lt;p&gt;The following code shows how an image with an alpha channel can be used to generate a mask for a widget:&lt;/p&gt;
&lt;pre&gt;        QLabel topLevelLabel;
        QPixmap pixmap(&amp;quot;:/images/tux.png&amp;quot;);
        topLevelLabel.setPixmap(pixmap);
        topLevelLabel.setMask(pixmap.mask());&lt;/pre&gt;
&lt;p&gt;The label shown by this code is masked using the image it contains, giving the appearance that an irregularly-shaped image is being drawn directly onto the screen.&lt;/p&gt;
&lt;p&gt;Masked widgets receive mouse events only on their visible portions.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#clearMask()&quot;&gt;&lt;tt&gt;clearMask&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowOpacity()&quot;&gt;&lt;tt&gt;windowOpacity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-shapedclock.html&quot;&gt;Shaped Clock Example&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMask(com.trolltech.qt.gui.QRegion arg__1)" doc="/**
&lt;p&gt;Causes only the parts of the widget which overlap &lt;tt&gt;arg__1&lt;/tt&gt; to be visible. If the region includes pixels outside the &lt;a href=&quot;QWidget.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt; of the widget, window system controls in that area may or may not be visible, depending on the platform.&lt;/p&gt;
&lt;p&gt;Note that this effect can be slow if the region is particularly complex.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mask()&quot;&gt;&lt;tt&gt;mask&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowOpacity()&quot;&gt;&lt;tt&gt;windowOpacity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMaximumHeight(int maxh)" doc="/**
&lt;p&gt;Sets the widget's maximum height to &lt;tt&gt;maxh&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;. It is limited by the QWIDGETSIZE_MAX macro, i.e&amp;#x2e; the largest allowed height is 16777215.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#maximumHeight()&quot;&gt;&lt;tt&gt;maximumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMaximumSize(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Sets the widget's maximum size to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The widget cannot be resized to a larger size than the maximum widget size.&lt;/p&gt;
&lt;p&gt;The property is limited by the QWIDGETSIZE_MAX macro, i.e&amp;#x2e; the largest allowed size is &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(16777215, 16777215).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumHeight()&quot;&gt;&lt;tt&gt;maximumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMaximumSize(int maxw, int maxh)" doc="/**
&lt;p&gt;Sets the widget's maximum size.&lt;/p&gt;
&lt;p&gt;The widget cannot be resized to a larger size than the maximum widget size.&lt;/p&gt;
&lt;p&gt;The property is limited by the QWIDGETSIZE_MAX macro, i.e&amp;#x2e; the largest allowed size is &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(16777215, 16777215).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumHeight()&quot;&gt;&lt;tt&gt;maximumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMaximumWidth(int maxw)" doc="/**
&lt;p&gt;Sets the widget's maximum width to &lt;tt&gt;maxw&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;. It is limited by the QWIDGETSIZE_MAX macro, i.e&amp;#x2e; the largest allowed width is 16777215.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#maximumWidth()&quot;&gt;&lt;tt&gt;maximumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumHeight()&quot;&gt;&lt;tt&gt;maximumHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMinimumHeight(int minh)" doc="/**
&lt;p&gt;Sets the widget's minimum height to &lt;tt&gt;minh&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#minimumHeight()&quot;&gt;&lt;tt&gt;minimumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMinimumSize(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Sets the widget's minimum size to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The widget cannot be resized to a smaller size than the minimum widget size. The widget's size is forced to the minimum size if the current size is smaller.&lt;/p&gt;
&lt;p&gt;The minimum size set by this function will override the minimum size defined by &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumHeight()&quot;&gt;&lt;tt&gt;minimumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMinimumSize(int minw, int minh)" doc="/**
&lt;p&gt;Sets the widget's minimum size.&lt;/p&gt;
&lt;p&gt;The widget cannot be resized to a smaller size than the minimum widget size. The widget's size is forced to the minimum size if the current size is smaller.&lt;/p&gt;
&lt;p&gt;The minimum size set by this function will override the minimum size defined by &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumHeight()&quot;&gt;&lt;tt&gt;minimumHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMinimumWidth(int minw)" doc="/**
&lt;p&gt;Sets the widget's minimum width to &lt;tt&gt;minw&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property corresponds to &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#minimumWidth()&quot;&gt;&lt;tt&gt;minimumWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumHeight()&quot;&gt;&lt;tt&gt;minimumHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMouseTracking(boolean enable)" doc="/**
&lt;p&gt;Sets whether mouse tracking is enabled for the widget to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If mouse tracking is disabled (the default), the widget only receives mouse move events when at least one mouse button is pressed while the mouse is being moved.&lt;/p&gt;
&lt;p&gt;If mouse tracking is enabled, the widget receives mouse move events even if no buttons are pressed.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#hasMouseTracking()&quot;&gt;&lt;tt&gt;hasMouseTracking&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPalette(com.trolltech.qt.gui.QPalette arg__1)" doc="/**
&lt;p&gt;Sets the widget's palette to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;As long as no special palette has been set, this is either a special palette for the widget class, the parent's palette or (if this widget is a top level widget), the default application palette.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; The palette's background color will only have an effect on the appearance of the widget if the &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; property is set.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Do not use this function in conjunction with &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt;. When using style sheets, the palette of a widget can be customized using the &amp;quot;color&amp;quot;, &amp;quot;background-color&amp;quot;, &amp;quot;selection-color&amp;quot;, &amp;quot;selection-background-color&amp;quot; and &amp;quot;alternate-background-color&amp;quot;.&lt;/p&gt;

@see &lt;tt&gt;QApplication::palette&lt;/tt&gt; */"/>
    <method name="public final void setParent(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Sets the parent of the widget to &lt;tt&gt;parent&lt;/tt&gt;, and resets the window flags. The widget is moved to position (0, 0) in its new parent.&lt;/p&gt;
&lt;p&gt;If the new parent widget is in a different window, the reparented widget and its children are appended to the end of the &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;tab chain&lt;/tt&gt;&lt;/a&gt; of the new parent widget, in the same internal order as before. If one of the moved widgets had keyboard focus, &lt;a href=&quot;QWidget.html#setParent(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;setParent&lt;/tt&gt;&lt;/a&gt; calls &lt;a href=&quot;QWidget.html#clearFocus()&quot;&gt;&lt;tt&gt;clearFocus&lt;/tt&gt;&lt;/a&gt; for that widget.&lt;/p&gt;
&lt;p&gt;If the new parent widget is in the same window as the old parent, setting the parent doesn't change the tab order or keyboard focus.&lt;/p&gt;
&lt;p&gt;If the &amp;quot;new&amp;quot; parent widget is the old parent widget, this function does nothing.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; It is very unlikely that you will ever need this function. If you have a widget that changes its content dynamically, it is far easier to use &lt;a href=&quot;QStackedWidget.html&quot;&gt;&lt;tt&gt;QStackedWidget&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowFlags(com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;setWindowFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setParent(com.trolltech.qt.gui.QWidget parent, com.trolltech.qt.core.Qt.WindowFlags f)" doc="/**
&lt;p&gt;This function also takes widget flags, &lt;tt&gt;f&lt;/tt&gt; as an argument.&lt;/p&gt;
 */"/>
    <method name="public final void setShortcutAutoRepeat(int id, boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true, auto repeat of the shortcut with the given &lt;tt&gt;id&lt;/tt&gt; is enabled; otherwise it is disabled.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#grabShortcut(com.trolltech.qt.gui.QKeySequence, com.trolltech.qt.core.Qt.ShortcutContext)&quot;&gt;&lt;tt&gt;grabShortcut&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#releaseShortcut(int)&quot;&gt;&lt;tt&gt;releaseShortcut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setShortcutAutoRepeat(int id)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#setShortcutAutoRepeat(int, boolean)&quot;&gt;&lt;tt&gt;setShortcutAutoRepeat&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;id&lt;/tt&gt;, true). */"/>
    <method name="public final void setShortcutEnabled(int id, boolean enable)" doc="/**
&lt;p&gt;If &lt;tt&gt;enable&lt;/tt&gt; is true, the shortcut with the given &lt;tt&gt;id&lt;/tt&gt; is enabled; otherwise the shortcut is disabled.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; You should not normally need to use this function since Qt's shortcut system enables/disables shortcuts automatically as widgets become hidden/visible and gain or lose focus. It is best to use &lt;a href=&quot;QAction.html&quot;&gt;&lt;tt&gt;QAction&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QShortcut.html&quot;&gt;&lt;tt&gt;QShortcut&lt;/tt&gt;&lt;/a&gt; to handle shortcuts, since they are easier to use than this low-level function.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#grabShortcut(com.trolltech.qt.gui.QKeySequence, com.trolltech.qt.core.Qt.ShortcutContext)&quot;&gt;&lt;tt&gt;grabShortcut&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#releaseShortcut(int)&quot;&gt;&lt;tt&gt;releaseShortcut&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setShortcutEnabled(int id)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QWidget.html#setShortcutEnabled(int, boolean)&quot;&gt;&lt;tt&gt;setShortcutEnabled&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;id&lt;/tt&gt;, true). */"/>
    <method name="public final void setSizeIncrement(int w, int h)" doc="/**
&lt;p&gt;Sets the size increment of the widget.&lt;/p&gt;
&lt;p&gt;When the user resizes the window, the size will move in steps of &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; pixels horizontally and &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; pixels vertically, with &lt;a href=&quot;QWidget.html#baseSize()&quot;&gt;&lt;tt&gt;baseSize&lt;/tt&gt;&lt;/a&gt; as the basis. Preferred widget sizes are for non-negative integers &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;:&lt;/p&gt;
&lt;pre&gt;    width = baseSize().width() + i * sizeIncrement().width();
    height = baseSize().height() + j * sizeIncrement().height();&lt;/pre&gt;
&lt;p&gt;Note that while you can set the size increment for all widgets, it only affects windows.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The size increment has no effect under Windows, and may be disregarded by the window manager on X.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSizeIncrement(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Sets the size increment of the widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When the user resizes the window, the size will move in steps of &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; pixels horizontally and &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; pixels vertically, with &lt;a href=&quot;QWidget.html#baseSize()&quot;&gt;&lt;tt&gt;baseSize&lt;/tt&gt;&lt;/a&gt; as the basis. Preferred widget sizes are for non-negative integers &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;:&lt;/p&gt;
&lt;pre&gt;    width = baseSize().width() + i * sizeIncrement().width();
    height = baseSize().height() + j * sizeIncrement().height();&lt;/pre&gt;
&lt;p&gt;Note that while you can set the size increment for all widgets, it only affects windows.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The size increment has no effect under Windows, and may be disregarded by the window manager on X.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSizePolicy(com.trolltech.qt.gui.QSizePolicy.Policy horizontal, com.trolltech.qt.gui.QSizePolicy.Policy vertical)" doc="/**
&lt;p&gt;Sets the default layout behavior of the widget.&lt;/p&gt;
&lt;p&gt;If there is a &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt; that manages this widget's children, the size policy specified by that layout is used. If there is no such &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;, the result of this function is used.&lt;/p&gt;
&lt;p&gt;The default policy is Preferred/Preferred, which means that the widget can be freely resized, but prefers to be the size &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; returns. Button-like widgets set the size policy to specify that they may stretch horizontally, but are fixed vertically. The same applies to lineedit controls (such as &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSpinBox.html&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; or an editable &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt;) and other horizontally orientated widgets (such as &lt;a href=&quot;QProgressBar.html&quot;&gt;&lt;tt&gt;QProgressBar&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;'s are normally square, so they allow growth in both directions. Widgets that support different directions (such as &lt;a href=&quot;QSlider.html&quot;&gt;&lt;tt&gt;QSlider&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QScrollBar.html&quot;&gt;&lt;tt&gt;QScrollBar&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;%2E%2E/porting4.html#qheader&quot;&gt;&lt;tt&gt;QHeader&lt;/tt&gt;&lt;/a&gt;) specify stretching in the respective direction only. Widgets that can provide scroll bars (usually subclasses of &lt;a href=&quot;QScrollArea.html&quot;&gt;&lt;tt&gt;QScrollArea&lt;/tt&gt;&lt;/a&gt;) tend to specify that they can use additional space, and that they can make do with less than &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizePolicy.html&quot;&gt;&lt;tt&gt;QSizePolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#updateGeometry()&quot;&gt;&lt;tt&gt;updateGeometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSizePolicy(com.trolltech.qt.gui.QSizePolicy arg__1)" doc="/**
&lt;p&gt;Sets the default layout behavior of the widget to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If there is a &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt; that manages this widget's children, the size policy specified by that layout is used. If there is no such &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;, the result of this function is used.&lt;/p&gt;
&lt;p&gt;The default policy is Preferred/Preferred, which means that the widget can be freely resized, but prefers to be the size &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; returns. Button-like widgets set the size policy to specify that they may stretch horizontally, but are fixed vertically. The same applies to lineedit controls (such as &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSpinBox.html&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; or an editable &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt;) and other horizontally orientated widgets (such as &lt;a href=&quot;QProgressBar.html&quot;&gt;&lt;tt&gt;QProgressBar&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;'s are normally square, so they allow growth in both directions. Widgets that support different directions (such as &lt;a href=&quot;QSlider.html&quot;&gt;&lt;tt&gt;QSlider&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QScrollBar.html&quot;&gt;&lt;tt&gt;QScrollBar&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;%2E%2E/porting4.html#qheader&quot;&gt;&lt;tt&gt;QHeader&lt;/tt&gt;&lt;/a&gt;) specify stretching in the respective direction only. Widgets that can provide scroll bars (usually subclasses of &lt;a href=&quot;QScrollArea.html&quot;&gt;&lt;tt&gt;QScrollArea&lt;/tt&gt;&lt;/a&gt;) tend to specify that they can use additional space, and that they can make do with less than &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#sizePolicy()&quot;&gt;&lt;tt&gt;sizePolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizePolicy.html&quot;&gt;&lt;tt&gt;QSizePolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#updateGeometry()&quot;&gt;&lt;tt&gt;updateGeometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStatusTip(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the widget's status tip to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#statusTip()&quot;&gt;&lt;tt&gt;statusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#toolTip()&quot;&gt;&lt;tt&gt;toolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#whatsThis()&quot;&gt;&lt;tt&gt;whatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStyle(com.trolltech.qt.gui.QStyle arg__1)" doc="/**
&lt;p&gt;Sets the widget's GUI style to &lt;tt&gt;arg__1&lt;/tt&gt;. The ownership of the style object is not transferred.&lt;/p&gt;
&lt;p&gt;If no style is set, the widget uses the application's style, QApplication::style() instead.&lt;/p&gt;
&lt;p&gt;Setting a widget's style has no effect on existing or future child widgets.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; This function is particularly useful for demonstration purposes, where you want to show Qt's styling capabilities. Real applications should avoid it and use one consistent GUI style instead.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#style()&quot;&gt;&lt;tt&gt;style&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::style&lt;/tt&gt;
@see &lt;tt&gt;QApplication::setStyle&lt;/tt&gt; */"/>
    <method name="public final void setStyleSheet(java.lang.String styleSheet)" doc="/**
&lt;p&gt;Sets the widget's style sheet to &lt;tt&gt;styleSheet&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The style sheet contains a textual description of customizations to the widget's style, as described in the &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt; document.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setStyle(com.trolltech.qt.gui.QStyle)&quot;&gt;&lt;tt&gt;setStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::styleSheet&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setToolTip(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the widget's tooltip to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that by default tooltips are only shown for widgets that are children of the active window. You can change this behavior by setting the attribute Qt::WA_AlwaysShowToolTips on the &lt;i&gt;window&lt;/i&gt;, not on the widget with the tooltip.&lt;/p&gt;
&lt;p&gt;If you want to control a tooltip's behavior, you can intercept the &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; function and catch the QEvent::ToolTip event (e.g&amp;#x2e;, if you want to customize the area for which the tooltip should be shown).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#toolTip()&quot;&gt;&lt;tt&gt;toolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QToolTip.html&quot;&gt;&lt;tt&gt;QToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#statusTip()&quot;&gt;&lt;tt&gt;statusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#whatsThis()&quot;&gt;&lt;tt&gt;whatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUpdatesEnabled(boolean enable)" doc="/**
&lt;p&gt;Sets whether updates are enabled to &lt;tt&gt;enable&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;An updates enabled widget receives paint events and has a system background; a disabled widget does not. This also implies that calling &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; has no effect if updates are disabled.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#setUpdatesEnabled(boolean)&quot;&gt;&lt;tt&gt;setUpdatesEnabled&lt;/tt&gt;&lt;/a&gt; is normally used to disable updates for a short period of time, for instance to avoid screen flicker during large changes. In Qt, widgets normally do not generate screen flicker, but on X11 the server might erase regions on the screen when widgets get hidden before they can be replaced by other widgets. Disabling updates solves this.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    setUpdatesEnabled(false);
    bigVisualChanges();
    setUpdatesEnabled(true);&lt;/pre&gt;
&lt;p&gt;Disabling a widget implicitly disables all its children. Enabling respectively enables all child widgets unless they have been explicitly disabled. Re-enabling updates implicitly calls &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; on the widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#updatesEnabled()&quot;&gt;&lt;tt&gt;updatesEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWhatsThis(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the widget's What's This help text. to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#whatsThis()&quot;&gt;&lt;tt&gt;whatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWhatsThis.html&quot;&gt;&lt;tt&gt;QWhatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::toolTip&lt;/tt&gt;
@see &lt;tt&gt;QWidget::statusTip&lt;/tt&gt; */"/>
    <method name="public final void setWindowFlags(com.trolltech.qt.core.Qt.WindowFlags type)" doc="/**
&lt;p&gt;Window flags are a combination of a type (e.g&amp;#x2e; Qt::Dialog) and zero or more hints to the window system (e.g&amp;#x2e; Qt::FramelessWindowHint).&lt;/p&gt;
&lt;p&gt;If the widget had type Qt::Widget or Qt::SubWindow and becomes a window (&lt;a href=&quot;%2E%2E/winsystem.html#qt-windows&quot;&gt;Qt::Window&lt;/tt&gt;&lt;/a&gt;, Qt::Dialog, etc.), it is put at position (0, 0) on the desktop. If the widget is a window and becomes a Qt::Widget or Qt::SubWindow, it is put at position (0, 0) relative to its parent widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowFlags()&quot;&gt;&lt;tt&gt;windowFlags&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowType()&quot;&gt;&lt;tt&gt;windowType&lt;/tt&gt;&lt;/a&gt;
@see Window Flags Example&lt;/tt&gt; */"/>
    <method name="public final void setWindowIcon(com.trolltech.qt.gui.QIcon icon)" doc="/**
&lt;p&gt;Sets the widget's icon to &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. If no icon has been set, &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt; returns the application icon (QApplication::windowIcon()).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowIconText()&quot;&gt;&lt;tt&gt;windowIconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWindowIconText(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the widget's icon text to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. If no icon text has been set, this functions returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowIconText()&quot;&gt;&lt;tt&gt;windowIconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWindowModality(com.trolltech.qt.core.Qt.WindowModality windowModality)" doc="/**
&lt;p&gt;Sets which windows are blocked by the modal widget to &lt;tt&gt;windowModality&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. A modal widget prevents widgets in other windows from getting input. The value of this property controls which windows are blocked when the widget is visible. Changing this property while the window is visible has no effect; you must &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; the widget first, then &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; it again.&lt;/p&gt;
&lt;p&gt;By default, this property is Qt::NonModal.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowModality()&quot;&gt;&lt;tt&gt;windowModality&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;&lt;tt&gt;isWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::modal&lt;/tt&gt;
@see &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWindowModified(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the document shown in the window has unsaved changes to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;A modified window is a window whose content has changed but has not been saved to disk. This flag will have different effects varied by the platform. On Mac OS X the close button will have a modified look; on other platforms, the window title will have an '*' (asterisk).&lt;/p&gt;
&lt;p&gt;The window title must contain a &amp;quot;[*]&amp;quot; placeholder, which indicates where the '*' should appear. Normally, it should appear right after the file name (e.g&amp;#x2e;, &amp;quot;document1.txt[*] - Text Editor&amp;quot;). If the window isn't modified, the placeholder is simply removed.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#isWindowModified()&quot;&gt;&lt;tt&gt;isWindowModified&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-application.html&quot;&gt;Application Example&lt;/tt&gt;&lt;/a&gt;
@see SDI Example&lt;/tt&gt;
@see MDI Example&lt;/tt&gt; */"/>
    <method name="public final void setWindowOpacity(double level)" doc="/**
&lt;p&gt;Sets The level of opacity for the window. to &lt;tt&gt;level&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The valid range of opacity is from 1.0 (completely opaque) to 0.0 (completely transparent).&lt;/p&gt;
&lt;p&gt;By default the value of this property is 1.0&amp;#x2e;&lt;/p&gt;
&lt;p&gt;This feature is available on Mac OS X, X11 platforms that support the Composite extension, and Windows 2000 and later.&lt;/p&gt;
&lt;p&gt;Note that under X11 you need to have a composite manager running, and the X11 specific _NET_WM_WINDOW_OPACITY atom needs to be supported by the window manager you are using.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Changing this property from opaque to transparent might issue a paint event that needs to be processed before the window is displayed correctly. This affects mainly the use of QPixmap::grabWindow(). Also note that semi-transparent windows update and resize significantly slower than opaque windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowOpacity()&quot;&gt;&lt;tt&gt;windowOpacity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setMask(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWindowRole(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the window's role to &lt;tt&gt;arg__1&lt;/tt&gt;. This only makes sense for windows on X11.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowRole()&quot;&gt;&lt;tt&gt;windowRole&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWindowState(com.trolltech.qt.core.Qt.WindowStates state)" doc="/**
&lt;p&gt;Sets the window state to &lt;tt&gt;state&lt;/tt&gt;. The window state is a OR'ed combination of Qt::WindowState: Qt::WindowMinimized, Qt::WindowMaximized, Qt::WindowFullScreen, and Qt::WindowActive.&lt;/p&gt;
&lt;p&gt;If the window is not visible (i.e&amp;#x2e; &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; returns false), the window state will take effect when &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; is called. For visible windows, the change is immediate. For example, to toggle between full-screen and mormal mode, use the following code:&lt;/p&gt;
&lt;pre&gt;    w-&amp;gt;setWindowState(w-&amp;gt;windowState() ^ Qt::WindowFullScreen);&lt;/pre&gt;
&lt;p&gt;In order to restore and activate a minimized window (while preserving its maximized and/or full-screen state), use the following:&lt;/p&gt;
&lt;pre&gt;    w-&amp;gt;setWindowState(w-&amp;gt;windowState() &amp;amp; ~Qt::WindowMinimized | Qt::WindowActive);&lt;/pre&gt;
&lt;p&gt;Note: On some window systems Qt::WindowActive is not immediate, and may be ignored in certain cases.&lt;/p&gt;
&lt;p&gt;When the window state changes, the widget receives a &lt;a href=&quot;QWidget.html#changeEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;changeEvent&lt;/tt&gt;&lt;/a&gt; of type QEvent::WindowStateChange.&lt;/p&gt;

@see &lt;tt&gt;Qt::WindowState&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#windowState()&quot;&gt;&lt;tt&gt;windowState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWindowTitle(java.lang.String arg__1)" doc="/**
&lt;p&gt;Sets the window title (caption) to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. If no caption has been set, the title is an empty string.&lt;/p&gt;
&lt;p&gt;If you use the &lt;tt&gt;windowModified&lt;/tt&gt; mechanism, the window title must contain a &amp;quot;[*]&amp;quot; placeholder, which indicates where the '*' should appear. Normally, it should appear right after the file name (e.g&amp;#x2e;, &amp;quot;document1.txt[*] - Text Editor&amp;quot;). If the &lt;tt&gt;windowModified&lt;/tt&gt; property is false (the default), the placeholder is simply removed.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIconText()&quot;&gt;&lt;tt&gt;windowIconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;windowModified&lt;/tt&gt; */"/>
    <method name="public final void show()" doc="/**
&lt;p&gt;Shows the widget and its child widgets. This function is equivalent to &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(true).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#showEvent(com.trolltech.qt.gui.QShowEvent)&quot;&gt;&lt;tt&gt;showEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMinimized()&quot;&gt;&lt;tt&gt;showMinimized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMaximized()&quot;&gt;&lt;tt&gt;showMaximized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void showFullScreen()" doc="/**
&lt;p&gt;Shows the widget in full-screen mode.&lt;/p&gt;
&lt;p&gt;Calling this function only affects &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;windows&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To return from full-screen mode, call &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;An alternative would be to bypass the window manager entirely and create a window with the Qt::X11BypassWindowManagerHint flag. This has other severe problems though, like totally broken keyboard focus and very strange effects on desktop changes or when the user raises other windows.&lt;/p&gt;
&lt;p&gt;X11 window managers that follow modern post-ICCCM specifications support full-screen mode properly.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMaximized()&quot;&gt;&lt;tt&gt;showMaximized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void showMaximized()" doc="/**
&lt;p&gt;Shows the widget maximized.&lt;/p&gt;
&lt;p&gt;Calling this function only affects &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;windows&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On X11, this function may not work properly with certain window managers. See &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry&lt;/tt&gt;&lt;/a&gt; for an explanation.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowState(com.trolltech.qt.core.Qt.WindowStates)&quot;&gt;&lt;tt&gt;setWindowState&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMinimized()&quot;&gt;&lt;tt&gt;showMinimized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void showMinimized()" doc="/**
&lt;p&gt;Shows the widget minimized, as an icon.&lt;/p&gt;
&lt;p&gt;Calling this function only affects &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;windows&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMaximized()&quot;&gt;&lt;tt&gt;showMaximized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isMinimized()&quot;&gt;&lt;tt&gt;isMinimized&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void showNormal()" doc="/**
&lt;p&gt;Restores the widget after it has been maximized or minimized.&lt;/p&gt;
&lt;p&gt;Calling this function only affects &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;windows&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowState(com.trolltech.qt.core.Qt.WindowStates)&quot;&gt;&lt;tt&gt;setWindowState&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMinimized()&quot;&gt;&lt;tt&gt;showMinimized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showMaximized()&quot;&gt;&lt;tt&gt;showMaximized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize size()" doc="/**
&lt;p&gt;Returns the size of the widget excluding any window frame.&lt;/p&gt;
&lt;p&gt;If the widget is visible when it is being resized, it receives a resize event (&lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.&lt;/p&gt;
&lt;p&gt;The size is adjusted if it lies outside the range defined by &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Calling &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#setGeometry(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;setGeometry&lt;/tt&gt;&lt;/a&gt; inside &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; can lead to infinite recursion.&lt;/p&gt;
&lt;p&gt;Note that setting size to &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(0, 0) will cause the widget to not appear on screen. This also applies to windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#pos()&quot;&gt;pos&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize sizeIncrement()" doc="/**
&lt;p&gt;Returns the size increment of the widget.&lt;/p&gt;
&lt;p&gt;When the user resizes the window, the size will move in steps of &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; pixels horizontally and &lt;a href=&quot;QWidget.html#sizeIncrement()&quot;&gt;&lt;tt&gt;sizeIncrement&lt;/tt&gt;&lt;/a&gt;.&lt;a href=&quot;QWidget.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; pixels vertically, with &lt;a href=&quot;QWidget.html#baseSize()&quot;&gt;&lt;tt&gt;baseSize&lt;/tt&gt;&lt;/a&gt; as the basis. Preferred widget sizes are for non-negative integers &lt;i&gt;i&lt;/i&gt; and &lt;i&gt;j&lt;/i&gt;:&lt;/p&gt;
&lt;pre&gt;    width = baseSize().width() + i * sizeIncrement().width();
    height = baseSize().height() + j * sizeIncrement().height();&lt;/pre&gt;
&lt;p&gt;Note that while you can set the size increment for all widgets, it only affects windows.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; The size increment has no effect under Windows, and may be disregarded by the window manager on X.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setSizeIncrement(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSizeIncrement&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#maximumSize()&quot;&gt;&lt;tt&gt;maximumSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QSizePolicy sizePolicy()" doc="/**
&lt;p&gt;Returns the default layout behavior of the widget.&lt;/p&gt;
&lt;p&gt;If there is a &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt; that manages this widget's children, the size policy specified by that layout is used. If there is no such &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;, the result of this function is used.&lt;/p&gt;
&lt;p&gt;The default policy is Preferred/Preferred, which means that the widget can be freely resized, but prefers to be the size &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; returns. Button-like widgets set the size policy to specify that they may stretch horizontally, but are fixed vertically. The same applies to lineedit controls (such as &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSpinBox.html&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; or an editable &lt;a href=&quot;QComboBox.html&quot;&gt;&lt;tt&gt;QComboBox&lt;/tt&gt;&lt;/a&gt;) and other horizontally orientated widgets (such as &lt;a href=&quot;QProgressBar.html&quot;&gt;&lt;tt&gt;QProgressBar&lt;/tt&gt;&lt;/a&gt;). &lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;'s are normally square, so they allow growth in both directions. Widgets that support different directions (such as &lt;a href=&quot;QSlider.html&quot;&gt;&lt;tt&gt;QSlider&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QScrollBar.html&quot;&gt;&lt;tt&gt;QScrollBar&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;%2E%2E/porting4.html#qheader&quot;&gt;&lt;tt&gt;QHeader&lt;/tt&gt;&lt;/a&gt;) specify stretching in the respective direction only. Widgets that can provide scroll bars (usually subclasses of &lt;a href=&quot;QScrollArea.html&quot;&gt;&lt;tt&gt;QScrollArea&lt;/tt&gt;&lt;/a&gt;) tend to specify that they can use additional space, and that they can make do with less than &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setSizePolicy(com.trolltech.qt.gui.QSizePolicy)&quot;&gt;&lt;tt&gt;setSizePolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizePolicy.html&quot;&gt;&lt;tt&gt;QSizePolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#updateGeometry()&quot;&gt;&lt;tt&gt;updateGeometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void stackUnder(com.trolltech.qt.gui.QWidget arg__1)" doc="/**
&lt;p&gt;Places the widget under &lt;tt&gt;arg__1&lt;/tt&gt; in the parent widget's stack.&lt;/p&gt;
&lt;p&gt;To make this work, the widget itself and &lt;tt&gt;arg__1&lt;/tt&gt; must be siblings.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#raise()&quot;&gt;&lt;tt&gt;raise&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#lower()&quot;&gt;&lt;tt&gt;lower&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String statusTip()" doc="/**
&lt;p&gt;Returns the widget's status tip.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setStatusTip(java.lang.String)&quot;&gt;&lt;tt&gt;setStatusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#toolTip()&quot;&gt;&lt;tt&gt;toolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#whatsThis()&quot;&gt;&lt;tt&gt;whatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QStyle style()"/>
    <method name="public final java.lang.String styleSheet()" doc="/**
&lt;p&gt;Returns the widget's style sheet.&lt;/p&gt;
&lt;p&gt;The style sheet contains a textual description of customizations to the widget's style, as described in the &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt; document.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setStyleSheet(java.lang.String)&quot;&gt;&lt;tt&gt;setStyleSheet&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setStyle(com.trolltech.qt.gui.QStyle)&quot;&gt;&lt;tt&gt;setStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::styleSheet&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/stylesheet.html&quot;&gt;Qt Style Sheets&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean testAttribute(com.trolltech.qt.core.Qt.WidgetAttribute arg__1)" doc="/**
&lt;p&gt;Returns true if attribute &lt;tt&gt;arg__1&lt;/tt&gt; is set on this widget; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setAttribute(com.trolltech.qt.core.Qt.WidgetAttribute, boolean)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String toolTip()" doc="/**
&lt;p&gt;Returns the widget's tooltip.&lt;/p&gt;
&lt;p&gt;Note that by default tooltips are only shown for widgets that are children of the active window. You can change this behavior by setting the attribute Qt::WA_AlwaysShowToolTips on the &lt;i&gt;window&lt;/i&gt;, not on the widget with the tooltip.&lt;/p&gt;
&lt;p&gt;If you want to control a tooltip's behavior, you can intercept the &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; function and catch the QEvent::ToolTip event (e.g&amp;#x2e;, if you want to customize the area for which the tooltip should be shown).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setToolTip(java.lang.String)&quot;&gt;&lt;tt&gt;setToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QToolTip.html&quot;&gt;&lt;tt&gt;QToolTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#statusTip()&quot;&gt;&lt;tt&gt;statusTip&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#whatsThis()&quot;&gt;&lt;tt&gt;whatsThis&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean underMouse()" doc="/**
&lt;p&gt;Returns true if the widget is under the mouse cursor; otherwise returns false.&lt;/p&gt;
&lt;p&gt;This value is not updated properly during drag and drop operations.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#enterEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;enterEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#leaveEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;leaveEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void unsetCursor()" doc="/**
&lt;p&gt;Resets the cursor shape for this widget.&lt;/p&gt;
&lt;p&gt;The mouse cursor will assume this shape when it's over this widget. See the list of predefined cursor objects&lt;/tt&gt; for a range of useful shapes.&lt;/p&gt;
&lt;p&gt;An editor widget might use an I-beam cursor:&lt;/p&gt;
&lt;pre&gt;    setCursor(Qt::IBeamCursor);&lt;/pre&gt;
&lt;p&gt;If no cursor has been set, or after a call to &lt;a href=&quot;QWidget.html#unsetCursor()&quot;&gt;&lt;tt&gt;unsetCursor&lt;/tt&gt;&lt;/a&gt;, the parent's cursor is used.&lt;/p&gt;

@see &lt;tt&gt;QApplication::setOverrideCursor&lt;/tt&gt; */"/>
    <method name="public final void unsetLayoutDirection()" doc="/**
&lt;p&gt;Resets the layout direction for this widget.&lt;/p&gt;

@see &lt;tt&gt;QApplication::layoutDirection&lt;/tt&gt; */"/>
    <method name="public final void unsetLocale()" doc="/**
&lt;p&gt;Resets the widget's locale.&lt;/p&gt;
&lt;p&gt;As long as no special locale has been set, this is either the parent's locale or (if this widget is a top level widget), the default locale.&lt;/p&gt;
&lt;p&gt;If the widget displays dates or numbers, these should be formatted using the widget's locale.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/core/QLocale.html&quot;&gt;&lt;tt&gt;QLocale&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QLocale::setDefault&lt;/tt&gt; */"/>
    <method name="public final void update(int x, int y, int w, int h)" doc="/**
&lt;p&gt;This version updates a rectangle (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;) inside the widget.&lt;/p&gt;
 */"/>
    <method name="public final void update(com.trolltech.qt.core.QRect arg__1)" doc="/**
&lt;p&gt;This version updates a rectangle &lt;tt&gt;arg__1&lt;/tt&gt; inside the widget.&lt;/p&gt;
 */"/>
    <method name="public final void update()" doc="/**
&lt;p&gt;Updates the widget unless updates are disabled or the widget is hidden.&lt;/p&gt;
&lt;p&gt;This function does not cause an immediate repaint; instead it schedules a paint event for processing when Qt returns to the main event loop. This permits Qt to optimize for more speed and less flicker than a call to &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; does.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; several times normally results in just one &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; call.&lt;/p&gt;
&lt;p&gt;Qt normally erases the widget's area before the &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; call. If the Qt::WA_OpaquePaintEvent widget attribute is set, the widget is responsible for painting all its pixels with an opaque color.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setUpdatesEnabled(boolean)&quot;&gt;&lt;tt&gt;setUpdatesEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-analogclock.html&quot;&gt;Analog Clock Example&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void update(com.trolltech.qt.gui.QRegion arg__1)" doc="/**
&lt;p&gt;This version repaints a region &lt;tt&gt;arg__1&lt;/tt&gt; inside the widget.&lt;/p&gt;
 */"/>
    <method name="public final void updateGeometry()" doc="/**
&lt;p&gt;Notifies the layout system that this widget has changed and may need to change geometry.&lt;/p&gt;
&lt;p&gt;Call this function if the &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#sizePolicy()&quot;&gt;&lt;tt&gt;sizePolicy&lt;/tt&gt;&lt;/a&gt; have changed.&lt;/p&gt;
&lt;p&gt;For explicitly hidden widgets, &lt;a href=&quot;QWidget.html#updateGeometry()&quot;&gt;&lt;tt&gt;updateGeometry&lt;/tt&gt;&lt;/a&gt; is a no-op. The layout system will be notified as soon as the widget is shown.&lt;/p&gt;
 */"/>
    <method name="protected final void updateMicroFocus()" doc="/**
&lt;p&gt;Updates the widget's micro focus.&lt;/p&gt;

@see &lt;a href=&quot;QInputContext.html&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean updatesEnabled()" doc="/**
&lt;p&gt;Returns whether updates are enabled.&lt;/p&gt;
&lt;p&gt;An updates enabled widget receives paint events and has a system background; a disabled widget does not. This also implies that calling &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; has no effect if updates are disabled.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QWidget.html#setUpdatesEnabled(boolean)&quot;&gt;&lt;tt&gt;setUpdatesEnabled&lt;/tt&gt;&lt;/a&gt; is normally used to disable updates for a short period of time, for instance to avoid screen flicker during large changes. In Qt, widgets normally do not generate screen flicker, but on X11 the server might erase regions on the screen when widgets get hidden before they can be replaced by other widgets. Disabling updates solves this.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    setUpdatesEnabled(false);
    bigVisualChanges();
    setUpdatesEnabled(true);&lt;/pre&gt;
&lt;p&gt;Disabling a widget implicitly disables all its children. Enabling respectively enables all child widgets unless they have been explicitly disabled. Re-enabling updates implicitly calls &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; on the widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setUpdatesEnabled(boolean)&quot;&gt;&lt;tt&gt;setUpdatesEnabled&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QRegion visibleRegion()" doc="/**
&lt;p&gt;Returns the unobscured region where paint events can occur.&lt;/p&gt;
&lt;p&gt;For visible widgets, this is an approximation of the area not covered by other widgets; otherwise, this is an empty region.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; function calls this function if necessary, so in general you do not need to call it.&lt;/p&gt;
 */"/>
    <method name="public final java.lang.String whatsThis()" doc="/**
&lt;p&gt;Returns the widget's What's This help text..&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWhatsThis(java.lang.String)&quot;&gt;&lt;tt&gt;setWhatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWhatsThis.html&quot;&gt;&lt;tt&gt;QWhatsThis&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::toolTip&lt;/tt&gt;
@see &lt;tt&gt;QWidget::statusTip&lt;/tt&gt; */"/>
    <method name="public final int width()" doc="/**
&lt;p&gt;Returns the width of the widget excluding any window frame.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#geometry()&quot;&gt;geometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#height()&quot;&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#size()&quot;&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int widthMM()" doc="/**
&lt;p&gt;Returns the width of the paint device in millimeters.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final long winId()" doc="/**
&lt;p&gt;Returns the window system identifier of the widget.&lt;/p&gt;
&lt;p&gt;Portable in principle, but if you use it you are probably about to do something non-portable. Be careful.&lt;/p&gt;

@see &lt;tt&gt;find&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget window()" doc="/**
&lt;p&gt;Returns the window for this widget, i.e&amp;#x2e; the next ancestor widget that has (or could have) a window-system frame.&lt;/p&gt;
&lt;p&gt;If the widget is a window, the widget itself is returned.&lt;/p&gt;
&lt;p&gt;Typical usage is changing the window title:&lt;/p&gt;
&lt;pre&gt;    aWidget-&amp;gt;window()-&amp;gt;setWindowTitle(&amp;quot;New Window Title&amp;quot;);&lt;/pre&gt;

@see &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;&lt;tt&gt;isWindow&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.WindowFlags windowFlags()" doc="/**
&lt;p&gt;Window flags are a combination of a type (e.g&amp;#x2e; Qt::Dialog) and zero or more hints to the window system (e.g&amp;#x2e; Qt::FramelessWindowHint).&lt;/p&gt;
&lt;p&gt;If the widget had type Qt::Widget or Qt::SubWindow and becomes a window (&lt;a href=&quot;%2E%2E/winsystem.html#qt-windows&quot;&gt;Qt::Window&lt;/tt&gt;&lt;/a&gt;, Qt::Dialog, etc.), it is put at position (0, 0) on the desktop. If the widget is a window and becomes a Qt::Widget or Qt::SubWindow, it is put at position (0, 0) relative to its parent widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowFlags(com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;setWindowFlags&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowType()&quot;&gt;&lt;tt&gt;windowType&lt;/tt&gt;&lt;/a&gt;
@see Window Flags Example&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QIcon windowIcon()" doc="/**
&lt;p&gt;Returns the widget's icon.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. If no icon has been set, &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt; returns the application icon (QApplication::windowIcon()).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setWindowIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIconText()&quot;&gt;&lt;tt&gt;windowIconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String windowIconText()" doc="/**
&lt;p&gt;Returns the widget's icon text.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. If no icon text has been set, this functions returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowIconText(java.lang.String)&quot;&gt;&lt;tt&gt;setWindowIconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.WindowModality windowModality()" doc="/**
&lt;p&gt;Returns which windows are blocked by the modal widget.&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. A modal widget prevents widgets in other windows from getting input. The value of this property controls which windows are blocked when the widget is visible. Changing this property while the window is visible has no effect; you must &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; the widget first, then &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; it again.&lt;/p&gt;
&lt;p&gt;By default, this property is Qt::NonModal.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowModality(com.trolltech.qt.core.Qt.WindowModality)&quot;&gt;&lt;tt&gt;setWindowModality&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isWindow()&quot;&gt;&lt;tt&gt;isWindow&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QWidget::modal&lt;/tt&gt;
@see &lt;a href=&quot;QDialog.html&quot;&gt;&lt;tt&gt;QDialog&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double windowOpacity()" doc="/**
&lt;p&gt;Returns The level of opacity for the window..&lt;/p&gt;
&lt;p&gt;The valid range of opacity is from 1.0 (completely opaque) to 0.0 (completely transparent).&lt;/p&gt;
&lt;p&gt;By default the value of this property is 1.0&amp;#x2e;&lt;/p&gt;
&lt;p&gt;This feature is available on Mac OS X, X11 platforms that support the Composite extension, and Windows 2000 and later.&lt;/p&gt;
&lt;p&gt;Note that under X11 you need to have a composite manager running, and the X11 specific _NET_WM_WINDOW_OPACITY atom needs to be supported by the window manager you are using.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Warning:&lt;/b&gt; Changing this property from opaque to transparent might issue a paint event that needs to be processed before the window is displayed correctly. This affects mainly the use of QPixmap::grabWindow(). Also note that semi-transparent windows update and resize significantly slower than opaque windows.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowOpacity(double)&quot;&gt;&lt;tt&gt;setWindowOpacity&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setMask(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;setMask&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String windowRole()" doc="/**
&lt;p&gt;Returns the window's role, or an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowRole(java.lang.String)&quot;&gt;&lt;tt&gt;setWindowRole&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowTitle()&quot;&gt;&lt;tt&gt;windowTitle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.WindowStates windowState()" doc="/**
&lt;p&gt;Returns the current window state. The window state is a OR'ed combination of Qt::WindowState: Qt::WindowMinimized, Qt::WindowMaximized, Qt::WindowFullScreen, and Qt::WindowActive.&lt;/p&gt;

@see &lt;tt&gt;Qt::WindowState&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#setWindowState(com.trolltech.qt.core.Qt.WindowStates)&quot;&gt;&lt;tt&gt;setWindowState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String windowTitle()" doc="/**
&lt;p&gt;Returns the window title (caption).&lt;/p&gt;
&lt;p&gt;This property only makes sense for windows. If no caption has been set, the title is an empty string.&lt;/p&gt;
&lt;p&gt;If you use the &lt;tt&gt;windowModified&lt;/tt&gt; mechanism, the window title must contain a &amp;quot;[*]&amp;quot; placeholder, which indicates where the '*' should appear. Normally, it should appear right after the file name (e.g&amp;#x2e;, &amp;quot;document1.txt[*] - Text Editor&amp;quot;). If the &lt;tt&gt;windowModified&lt;/tt&gt; property is false (the default), the placeholder is simply removed.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowTitle(java.lang.String)&quot;&gt;&lt;tt&gt;setWindowTitle&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIcon()&quot;&gt;&lt;tt&gt;windowIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#windowIconText()&quot;&gt;&lt;tt&gt;windowIconText&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;windowModified&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.WindowType windowType()" doc="/**
&lt;p&gt;Returns the window type of this widget. This is identical to &lt;a href=&quot;QWidget.html#windowFlags()&quot;&gt;&lt;tt&gt;windowFlags&lt;/tt&gt;&lt;/a&gt; &amp;amp; Qt::WindowType_Mask.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#windowFlags()&quot;&gt;&lt;tt&gt;windowFlags&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int x()" doc="/**
&lt;p&gt;Returns the x coordinate of the widget relative to its parent including any window frame.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#y()&quot;&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#pos()&quot;&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int y()" doc="/**
&lt;p&gt;Returns the y coordinate of the widget relative to its parent and including any window frame.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/geometry.html&quot;&gt;Window Geometry documentation&lt;/tt&gt;&lt;/a&gt; for an overview of window geometry.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#frameGeometry()&quot;&gt;&lt;tt&gt;frameGeometry&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#x()&quot;&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#pos()&quot;&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void actionEvent(com.trolltech.qt.gui.QActionEvent arg__1)" doc="/**
&lt;p&gt;This event handler is called with the given &lt;tt&gt;arg__1&lt;/tt&gt; whenever the widget's actions are changed.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#addAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;addAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#insertAction(com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;insertAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#removeAction(com.trolltech.qt.gui.QAction)&quot;&gt;&lt;tt&gt;removeAction&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#actions()&quot;&gt;&lt;tt&gt;actions&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QActionEvent.html&quot;&gt;&lt;tt&gt;QActionEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented to handle state changes.&lt;/p&gt;
&lt;p&gt;The state being changed in this event can be retrieved through event &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Change events include: QEvent::ToolBarChange, QEvent::ActivationChange, QEvent::EnabledChange, QEvent::FontChange, QEvent::StyleChange, QEvent::PaletteChange, QEvent::WindowTitleChange, QEvent::IconTextChange, QEvent::ModifiedChange, QEvent::MouseTrackingChange, QEvent::ParentChange, QEvent::WindowStateChange, QEvent::LanguageChange, QEvent::LocaleChange, QEvent::LayoutDirectionChange.&lt;/p&gt;
 */"/>
    <method name="protected void closeEvent(com.trolltech.qt.gui.QCloseEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive widget close events.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#close()&quot;&gt;&lt;tt&gt;close&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QCloseEvent.html&quot;&gt;&lt;tt&gt;QCloseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-application.html&quot;&gt;Application Example&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive widget context menu events.&lt;/p&gt;
&lt;p&gt;The handler is called when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::DefaultContextMenu.&lt;/p&gt;
&lt;p&gt;The default implementation ignores the context event. See the &lt;a href=&quot;QContextMenuEvent.html&quot;&gt;&lt;tt&gt;QContextMenuEvent&lt;/tt&gt;&lt;/a&gt; documentation for more details.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html&quot;&gt;&lt;tt&gt;QContextMenuEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#customContextMenuRequested(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;customContextMenuRequested&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public int devType()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void dragEnterEvent(com.trolltech.qt.gui.QDragEnterEvent arg__1)" doc="/**
&lt;p&gt;This event handler is called when a drag is in progress and the mouse enters this widget. The event is passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;If the event is ignored, the widget won't receive any &lt;a href=&quot;QWidget.html#dragMoveEvent(com.trolltech.qt.gui.QDragMoveEvent)&quot;&gt;drag move events&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag-and-drop documentation&lt;/tt&gt;&lt;/a&gt; for an overview of how to provide drag-and-drop in your application.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/porting4.html#qtextdrag&quot;&gt;&lt;tt&gt;QTextDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/porting4.html#qimagedrag&quot;&gt;&lt;tt&gt;QImageDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDragEnterEvent.html&quot;&gt;&lt;tt&gt;QDragEnterEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void dragLeaveEvent(com.trolltech.qt.gui.QDragLeaveEvent arg__1)" doc="/**
&lt;p&gt;This event handler is called when a drag is in progress and the mouse leaves this widget. The event is passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag-and-drop documentation&lt;/tt&gt;&lt;/a&gt; for an overview of how to provide drag-and-drop in your application.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/porting4.html#qtextdrag&quot;&gt;&lt;tt&gt;QTextDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/porting4.html#qimagedrag&quot;&gt;&lt;tt&gt;QImageDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDragLeaveEvent.html&quot;&gt;&lt;tt&gt;QDragLeaveEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void dragMoveEvent(com.trolltech.qt.gui.QDragMoveEvent arg__1)" doc="/**
&lt;p&gt;This event handler is called if a drag is in progress, and when any of the following conditions occurs: the cursor enters this widget, the cursor moves within this widget, or a modifier key is pressed on the keyboard while this widget has the focus. The event is passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag-and-drop documentation&lt;/tt&gt;&lt;/a&gt; for an overview of how to provide drag-and-drop in your application.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/porting4.html#qtextdrag&quot;&gt;&lt;tt&gt;QTextDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/porting4.html#qimagedrag&quot;&gt;&lt;tt&gt;QImageDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDragMoveEvent.html&quot;&gt;&lt;tt&gt;QDragMoveEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void dropEvent(com.trolltech.qt.gui.QDropEvent arg__1)" doc="/**
&lt;p&gt;This event handler is called when the drag is dropped on this widget which are passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;See the &lt;a href=&quot;%2E%2E/dnd.html&quot;&gt;Drag-and-drop documentation&lt;/tt&gt;&lt;/a&gt; for an overview of how to provide drag-and-drop in your application.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/porting4.html#qtextdrag&quot;&gt;&lt;tt&gt;QTextDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/porting4.html#qimagedrag&quot;&gt;&lt;tt&gt;QImageDrag&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDropEvent.html&quot;&gt;&lt;tt&gt;QDropEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void enterEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive widget enter events which are passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;An event is sent to the widget when the mouse cursor enters the widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#leaveEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;leaveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This is the main event handler; it handles event &lt;tt&gt;arg__1&lt;/tt&gt;. You can reimplement this function in a subclass, but we recommend using one of the specialized event handlers instead.&lt;/p&gt;
&lt;p&gt;Key press and release events are treated differently from other events. &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; checks for Tab and Shift+Tab and tries to move the focus appropriately. If there is no widget to move the focus to (or the key press is not Tab or Shift+Tab), &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; calls &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Mouse and tablet event handling is also slightly special: only when the widget is enabled&lt;/tt&gt;, &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; will call the specialized handlers such as &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;; otherwise it will discard the event.&lt;/p&gt;
&lt;p&gt;This function returns true if the event was recognized, otherwise it returns false. If the recognized event was accepted (see &lt;tt&gt;QEvent::accepted&lt;/tt&gt;), any further processing such as event propagation to the parent widget stops.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#closeEvent(com.trolltech.qt.gui.QCloseEvent)&quot;&gt;&lt;tt&gt;closeEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#enterEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;enterEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#leaveEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;leaveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QObject::event&lt;/tt&gt;
@see &lt;tt&gt;QObject::timerEvent&lt;/tt&gt; */"/>
    <method name="protected void focusInEvent(com.trolltech.qt.gui.QFocusEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive keyboard focus events (focus received) for the widget. The event is passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter&lt;/p&gt;
&lt;p&gt;A widget normally must &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt; to something other than Qt::NoFocus in order to receive focus events. (Note that the application programmer can call &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; on any widget, even those that do not normally accept focus.)&lt;/p&gt;
&lt;p&gt;The default implementation updates the widget (except for windows that do not specify a &lt;a href=&quot;QWidget.html#focusPolicy()&quot;&gt;&lt;tt&gt;focusPolicy&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFocusEvent.html&quot;&gt;&lt;tt&gt;QFocusEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected boolean focusNextPrevChild(boolean next)" doc="/**
&lt;p&gt;Finds a new widget to give the keyboard focus to, as appropriate for Tab and Shift+Tab, and returns true if it can find a new widget, or false if it can't.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;next&lt;/tt&gt; is true, this function searches forward, if &lt;tt&gt;next&lt;/tt&gt; is false, it searches backward.&lt;/p&gt;
&lt;p&gt;Sometimes, you will want to reimplement this function. For example, a web browser might reimplement it to move its &amp;quot;current active link&amp;quot; forward or backward, and call &lt;a href=&quot;QWidget.html#focusNextPrevChild(boolean)&quot;&gt;&lt;tt&gt;focusNextPrevChild&lt;/tt&gt;&lt;/a&gt; only when it reaches the last or first link on the &amp;quot;page&amp;quot;.&lt;/p&gt;
&lt;p&gt;Child widgets call &lt;a href=&quot;QWidget.html#focusNextPrevChild(boolean)&quot;&gt;&lt;tt&gt;focusNextPrevChild&lt;/tt&gt;&lt;/a&gt; on their parent widgets, but only the window that contains the child widgets decides where to redirect focus. By reimplementing this function for an object, you thus gain control of focus traversal for all child widgets.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#focusNextChild()&quot;&gt;&lt;tt&gt;focusNextChild&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusPreviousChild()&quot;&gt;&lt;tt&gt;focusPreviousChild&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void focusOutEvent(com.trolltech.qt.gui.QFocusEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive keyboard focus events (focus lost) for the widget. The events is passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;A widget normally must &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt; to something other than Qt::NoFocus in order to receive focus events. (Note that the application programmer can call &lt;a href=&quot;QWidget.html#setFocus()&quot;&gt;&lt;tt&gt;setFocus&lt;/tt&gt;&lt;/a&gt; on any widget, even those that do not normally accept focus.)&lt;/p&gt;
&lt;p&gt;The default implementation updates the widget (except for windows that do not specify a &lt;a href=&quot;QWidget.html#focusPolicy()&quot;&gt;&lt;tt&gt;focusPolicy&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFocusEvent.html&quot;&gt;&lt;tt&gt;QFocusEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public int heightForWidth(int arg__1)" doc="/**
&lt;p&gt;Returns the preferred height for this widget, given the width &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this widget has a layout, the default implementation returns the layout's preferred height. if there is no layout, the default implementation returns -1 indicating that the preferred height does not depend on the width.&lt;/p&gt;
 */"/>
    <method name="protected void hideEvent(com.trolltech.qt.gui.QHideEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive widget hide events. The event is passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;Hide events are sent to widgets immediately after they have been hidden.&lt;/p&gt;
&lt;p&gt;Note: A widget receives spontaneous show and hide events when its mapping status is changed by the window system, e.g&amp;#x2e; a spontaneous hide event when the user minimizes the window, and a spontaneous show event when the window is restored again. After receiving a spontaneous hide event, a widget is still considered visible in the sense of &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see visible&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QHideEvent.html&quot;&gt;&lt;tt&gt;QHideEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void inputMethodEvent(com.trolltech.qt.gui.QInputMethodEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive Input Method composition events. This handler is called when the state of the input method changes.&lt;/p&gt;
&lt;p&gt;Note that when creating custom text editing widgets, the Qt::WA_InputMethodEnabled window attribute must be set explicitly (using the &lt;a href=&quot;QWidget.html#setAttribute(com.trolltech.qt.core.Qt.WidgetAttribute, boolean)&quot;&gt;&lt;tt&gt;setAttribute&lt;/tt&gt;&lt;/a&gt; function) in order to receive input method events.&lt;/p&gt;
&lt;p&gt;The default implementation calls event-&amp;gt;ignore(), which rejects the Input Method event. See the &lt;a href=&quot;QInputMethodEvent.html&quot;&gt;&lt;tt&gt;QInputMethodEvent&lt;/tt&gt;&lt;/a&gt; documentation for more details.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QInputMethodEvent.html&quot;&gt;&lt;tt&gt;QInputMethodEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public java.lang.Object inputMethodQuery(com.trolltech.qt.core.Qt.InputMethodQuery arg__1)" doc="/**
&lt;p&gt;This method is only relevant for input widgets. It is used by the input method to query a set of properties of the widget to be able to support complex input method operations as support for surrounding text and reconversions.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;arg__1&lt;/tt&gt; specifies which property is queried.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#inputMethodEvent(com.trolltech.qt.gui.QInputMethodEvent)&quot;&gt;&lt;tt&gt;inputMethodEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QInputMethodEvent.html&quot;&gt;&lt;tt&gt;QInputMethodEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QInputContext.html&quot;&gt;&lt;tt&gt;QInputContext&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive key press events for the widget.&lt;/p&gt;
&lt;p&gt;A widget must call &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt; to accept focus initially and have focus in order to receive a key press event.&lt;/p&gt;
&lt;p&gt;If you reimplement this handler, it is very important that you &lt;a href=&quot;QKeyEvent.html&quot;&gt;ignore()&lt;/a&gt; the event if you do not understand it, so that the widget's parent can interpret it.&lt;/p&gt;
&lt;p&gt;The default implementation closes popup widgets if the user presses Esc. Otherwise the event is ignored.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QKeyEvent::ignore&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-tetrix.html&quot;&gt;Tetrix Example&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive key release events for the widget.&lt;/p&gt;
&lt;p&gt;A widget must &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;accept focus&lt;/tt&gt;&lt;/a&gt; initially and &lt;a href=&quot;QWidget.html#hasFocus()&quot;&gt;have focus&lt;/tt&gt;&lt;/a&gt; in order to receive a key release event.&lt;/p&gt;
&lt;p&gt;If you reimplement this handler, it is very important that you &lt;a href=&quot;QKeyEvent.html&quot;&gt;ignore()&lt;/a&gt; the release if you do not understand it, so that the widget's parent can interpret it.&lt;/p&gt;
&lt;p&gt;The default implementation ignores the event.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#keyPressEvent(com.trolltech.qt.gui.QKeyEvent)&quot;&gt;&lt;tt&gt;keyPressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QKeyEvent::ignore&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusInEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusInEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#focusOutEvent(com.trolltech.qt.gui.QFocusEvent)&quot;&gt;&lt;tt&gt;focusOutEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QKeyEvent.html&quot;&gt;&lt;tt&gt;QKeyEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void languageChange()"/>
    <method name="protected void leaveEvent(com.trolltech.qt.core.QEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive widget leave events which are passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;A leave event is sent to the widget when the mouse cursor leaves the widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#enterEvent(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;enterEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public int metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric arg__1)" doc="/**
&lt;p&gt;Internal implementation of the virtual QPaintDevice::metric() function.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;arg__1&lt;/tt&gt; is the metric to get.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/**
&lt;p&gt;Returns the recommended minimum size for the widget.&lt;/p&gt;
&lt;p&gt;If the value of this property is an invalid size, no minimum size is recommended.&lt;/p&gt;
&lt;p&gt;The default implementation of &lt;a href=&quot;QWidget.html#minimumSizeHint()&quot;&gt;&lt;tt&gt;minimumSizeHint&lt;/tt&gt;&lt;/a&gt; returns an invalid size if there is no layout for this widget, and returns the layout's minimum size otherwise. Most built-in widgets reimplement &lt;a href=&quot;QWidget.html#minimumSizeHint()&quot;&gt;&lt;tt&gt;minimumSizeHint&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QLayout.html&quot;&gt;&lt;tt&gt;QLayout&lt;/tt&gt;&lt;/a&gt; will never resize a widget to a size smaller than the minimum size hint unless &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; is set or the size policy is set to QSizePolicy::Ignore. If &lt;a href=&quot;QWidget.html#minimumSize()&quot;&gt;&lt;tt&gt;minimumSize&lt;/tt&gt;&lt;/a&gt; is set, the minimum size hint will be ignored.&lt;/p&gt;

@see &lt;tt&gt;QSize::isValid&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setMinimumSize(int, int)&quot;&gt;&lt;tt&gt;setMinimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizePolicy()&quot;&gt;&lt;tt&gt;sizePolicy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse double click events for the widget.&lt;/p&gt;
&lt;p&gt;The default implementation generates a normal mouse press event.&lt;/p&gt;
&lt;p&gt;Note that the widgets gets a &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt; and a &lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt; before the &lt;a href=&quot;QWidget.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse move events for the widget.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;QMouseEvent::pos() 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 Qt.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setMouseTracking(boolean)&quot;&gt;&lt;tt&gt;setMouseTracking&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;
@see Scribble Example&lt;/tt&gt; */"/>
    <method name="protected void mousePressEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse press events for the widget.&lt;/p&gt;
&lt;p&gt;If you create new widgets in the &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt; the &lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt; may not end up where you expect, depending on the underlying window system (or X11 window manager), the widgets' location and maybe more.&lt;/p&gt;
&lt;p&gt;The default implementation implements the closing of popup widgets when you click outside the window. For other widget types it does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseReleaseEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;
@see Scribble Example&lt;/tt&gt; */"/>
    <method name="protected void mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive mouse release events for the widget.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#mousePressEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mousePressEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseDoubleClickEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseDoubleClickEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent)&quot;&gt;&lt;tt&gt;mouseMoveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMouseEvent.html&quot;&gt;&lt;tt&gt;QMouseEvent&lt;/tt&gt;&lt;/a&gt;
@see Scribble Example&lt;/tt&gt; */"/>
    <method name="protected void moveEvent(com.trolltech.qt.gui.QMoveEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive widget move events which are passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter. When the widget receives this event, it is already at the new position.&lt;/p&gt;
&lt;p&gt;The old position is accessible through QMoveEvent::oldPos().&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#move(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;move&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMoveEvent.html&quot;&gt;&lt;tt&gt;QMoveEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.gui.QPaintEngine paintEngine()" doc="/**
&lt;p&gt;Returns the widget's paint engine.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive paint events which are passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;A paint event is a request to repaint all or part of the widget. It can happen as a result of &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt;, or because the widget was obscured and has now been uncovered, or for many other reasons.&lt;/p&gt;
&lt;p&gt;Many widgets can simply repaint their entire surface when asked to, but some slow widgets need to optimize by painting only the requested region: QPaintEvent::region(). This speed optimization does not change the result, as painting is clipped to that region during event processing. &lt;a href=&quot;QListView.html&quot;&gt;&lt;tt&gt;QListView&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTableView.html&quot;&gt;&lt;tt&gt;QTableView&lt;/tt&gt;&lt;/a&gt; do this, for example.&lt;/p&gt;
&lt;p&gt;Qt also tries to speed up painting by merging multiple paint events into one. When &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; is called several times or the window system sends several paint events, Qt merges these events into one event with a larger region (see QRegion::united()). &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; does not permit this optimization, so we suggest using &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; whenever possible.&lt;/p&gt;
&lt;p&gt;When the paint event occurs, the update region has normally been erased, so that you're painting on the widget's background.&lt;/p&gt;
&lt;p&gt;The background can be set using &lt;a href=&quot;QWidget.html#setBackgroundRole(com.trolltech.qt.gui.QPalette.ColorRole)&quot;&gt;&lt;tt&gt;setBackgroundRole&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QWidget.html#setPalette(com.trolltech.qt.gui.QPalette)&quot;&gt;&lt;tt&gt;setPalette&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;From Qt 4.0, &lt;a href=&quot;QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; automatically double-buffers its painting, so there's no need to write double-buffering code in &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; to avoid flicker.&lt;/p&gt;
&lt;p&gt;Note: Under X11 it is possible to toggle the global double buffering by calling &lt;tt&gt;qt_x11_set_global_double_buffer()&lt;/tt&gt;. Example usage:&lt;/p&gt;
&lt;pre&gt;    ...
    extern void qt_x11_set_global_double_buffer(bool);
    qt_x11_set_global_double_buffer(false);
    ...&lt;/pre&gt;
&lt;p&gt;Note: In general, one should refrain from calling &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; &lt;b&gt;inside&lt;/b&gt; of &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;. For example, calling &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt; on children inside a &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt; results in undefined behavior; the child may or may not get a paint event.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#repaint()&quot;&gt;&lt;tt&gt;repaint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#update(com.trolltech.qt.gui.QRegion)&quot;&gt;&lt;tt&gt;update&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPainter.html&quot;&gt;&lt;tt&gt;QPainter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPaintEvent.html&quot;&gt;&lt;tt&gt;QPaintEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-analogclock.html&quot;&gt;Analog Clock Example&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive widget resize events which are passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter. When &lt;a href=&quot;QWidget.html#resizeEvent(com.trolltech.qt.gui.QResizeEvent)&quot;&gt;&lt;tt&gt;resizeEvent&lt;/tt&gt;&lt;/a&gt; is called, the widget already has its new geometry. The old size is accessible through QResizeEvent::oldSize().&lt;/p&gt;
&lt;p&gt;The widget will be erased and receive a paint event immediately after processing the resize event. No drawing need be (or should be) done inside this handler.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#moveEvent(com.trolltech.qt.gui.QMoveEvent)&quot;&gt;&lt;tt&gt;moveEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#resize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QResizeEvent.html&quot;&gt;&lt;tt&gt;QResizeEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#paintEvent(com.trolltech.qt.gui.QPaintEvent)&quot;&gt;&lt;tt&gt;paintEvent&lt;/tt&gt;&lt;/a&gt;
@see Scribble Example&lt;/tt&gt; */"/>
    <method name="public void setVisible(boolean visible)" doc="/**
&lt;p&gt;Sets whether the widget is visible to &lt;tt&gt;visible&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(true) or &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt; sets the widget to visible status if all its parent widgets up to the window are visible. If an ancestor is not visible, the widget won't become visible until all its ancestors are shown. If its size or position has changed, Qt guarantees that a widget gets move and resize events just before it is shown. If the widget has not been resized yet, Qt will adjust the widget's size to a useful default using &lt;a href=&quot;QWidget.html#adjustSize()&quot;&gt;&lt;tt&gt;adjustSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Calling &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt;(false) or &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt; hides a widget explicitly. An explicitly hidden widget will never become visible, even if all its ancestors become visible, unless you show it.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;A widget that happens to be obscured by other windows on the screen is considered to be visible. The same applies to iconified windows 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&amp;#x2e; a spontaneous hide event when the user minimizes the window, and a spontaneous show event when the window is restored again.&lt;/p&gt;
&lt;p&gt;You almost never have to reimplement the &lt;a href=&quot;QWidget.html#setVisible(boolean)&quot;&gt;&lt;tt&gt;setVisible&lt;/tt&gt;&lt;/a&gt; function. If you need to change some settings before a widget is shown, use &lt;a href=&quot;QWidget.html#showEvent(com.trolltech.qt.gui.QShowEvent)&quot;&gt;&lt;tt&gt;showEvent&lt;/tt&gt;&lt;/a&gt; instead. If you need to do some delayed initialization use the Polish event delivered to the &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#show()&quot;&gt;&lt;tt&gt;show&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hide()&quot;&gt;&lt;tt&gt;hide&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isHidden()&quot;&gt;&lt;tt&gt;isHidden&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isVisibleTo(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;isVisibleTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#isMinimized()&quot;&gt;&lt;tt&gt;isMinimized&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#showEvent(com.trolltech.qt.gui.QShowEvent)&quot;&gt;&lt;tt&gt;showEvent&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#hideEvent(com.trolltech.qt.gui.QHideEvent)&quot;&gt;&lt;tt&gt;hideEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void showEvent(com.trolltech.qt.gui.QShowEvent arg__1)" doc="/**
&lt;p&gt;This event handler can be reimplemented in a subclass to receive widget show events which are passed in the &lt;tt&gt;arg__1&lt;/tt&gt; parameter.&lt;/p&gt;
&lt;p&gt;Non-spontaneous show events are sent to widgets immediately before they are shown. The spontaneous show events of windows are delivered afterwards.&lt;/p&gt;
&lt;p&gt;Note: A widget receives spontaneous show and hide events when its mapping status is changed by the window system, e.g&amp;#x2e; a spontaneous hide event when the user minimizes the window, and a spontaneous show event when the window is restored again. After receiving a spontaneous hide event, a widget is still considered visible in the sense of &lt;a href=&quot;QWidget.html#isVisible()&quot;&gt;&lt;tt&gt;isVisible&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see visible&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QShowEvent.html&quot;&gt;&lt;tt&gt;QShowEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;Returns the recommended size for the widget.&lt;/p&gt;
&lt;p&gt;If the value of this property is an invalid size, no size is recommended.&lt;/p&gt;
&lt;p&gt;The default implementation of &lt;a href=&quot;QWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; returns an invalid size if there is no layout for this widget, and returns the layout's preferred size otherwise.&lt;/p&gt;

@see &lt;tt&gt;QSize::isValid&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#minimumSizeHint()&quot;&gt;&lt;tt&gt;minimumSizeHint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#sizePolicy()&quot;&gt;&lt;tt&gt;sizePolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setMinimumSize(int, int)&quot;&gt;&lt;tt&gt;setMinimumSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#updateGeometry()&quot;&gt;&lt;tt&gt;updateGeometry&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void tabletEvent(com.trolltech.qt.gui.QTabletEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive tablet events for the widget.&lt;/p&gt;
&lt;p&gt;If you reimplement this handler, it is very important that you &lt;a href=&quot;QTabletEvent.html&quot;&gt;ignore()&lt;/a&gt; the event if you do not handle it, so that the widget's parent can interpret it.&lt;/p&gt;
&lt;p&gt;The default implementation ignores the event.&lt;/p&gt;

@see &lt;tt&gt;QTabletEvent::ignore&lt;/tt&gt;
@see &lt;tt&gt;QTabletEvent::accept&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTabletEvent.html&quot;&gt;&lt;tt&gt;QTabletEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void wheelEvent(com.trolltech.qt.gui.QWheelEvent arg__1)" doc="/**
&lt;p&gt;This event handler, for event &lt;tt&gt;arg__1&lt;/tt&gt;, can be reimplemented in a subclass to receive wheel events for the widget.&lt;/p&gt;
&lt;p&gt;If you reimplement this handler, it is very important that you &lt;a href=&quot;QWheelEvent.html&quot;&gt;ignore()&lt;/a&gt; the event if you do not handle it, so that the widget's parent can interpret it.&lt;/p&gt;
&lt;p&gt;The default implementation ignores the event.&lt;/p&gt;

@see &lt;tt&gt;QWheelEvent::ignore&lt;/tt&gt;
@see &lt;tt&gt;QWheelEvent::accept&lt;/tt&gt;
@see &lt;a href=&quot;QWidget.html#event(com.trolltech.qt.core.QEvent)&quot;&gt;&lt;tt&gt;event&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWheelEvent.html&quot;&gt;&lt;tt&gt;QWheelEvent&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget keyboardGrabber()" doc="/**
&lt;p&gt;Returns the widget that is currently grabbing the keyboard input.&lt;/p&gt;
&lt;p&gt;If no widget in this application is currently grabbing the keyboard, 0 is returned.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#mouseGrabber()&quot;&gt;&lt;tt&gt;mouseGrabber&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QWidget mouseGrabber()" doc="/**
&lt;p&gt;Returns the widget that is currently grabbing the mouse input.&lt;/p&gt;
&lt;p&gt;If no widget in this application is currently grabbing the mouse, 0 is returned.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#grabMouse(com.trolltech.qt.gui.QCursor)&quot;&gt;&lt;tt&gt;grabMouse&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#keyboardGrabber()&quot;&gt;&lt;tt&gt;keyboardGrabber&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static void setTabOrder(com.trolltech.qt.gui.QWidget arg__1, com.trolltech.qt.gui.QWidget arg__2)" doc="/**
&lt;p&gt;Moves the &lt;tt&gt;arg__2&lt;/tt&gt; widget around the ring of focus widgets so that keyboard focus moves from the &lt;tt&gt;arg__1&lt;/tt&gt; widget to the &lt;tt&gt;arg__2&lt;/tt&gt; widget when the Tab key is pressed.&lt;/p&gt;
&lt;p&gt;Note that since the tab order of the &lt;tt&gt;arg__2&lt;/tt&gt; widget is changed, you should order a chain like this:&lt;/p&gt;
&lt;pre&gt;    setTabOrder(a, b); &lt;span class=&quot;comment&quot;&gt;// a to b&lt;/span&gt;
    setTabOrder(b, c); &lt;span class=&quot;comment&quot;&gt;// a to b to c&lt;/span&gt;
    setTabOrder(c, d); &lt;span class=&quot;comment&quot;&gt;// a to b to c to d&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;i&gt;not&lt;/i&gt; like this:&lt;/p&gt;
&lt;pre&gt;&lt;span class=&quot;comment&quot;&gt;    // WRONG&lt;/span&gt;
    setTabOrder(c, d); &lt;span class=&quot;comment&quot;&gt;// c to d&lt;/span&gt;
    setTabOrder(a, b); &lt;span class=&quot;comment&quot;&gt;// a to b AND c to d&lt;/span&gt;
    setTabOrder(b, c); &lt;span class=&quot;comment&quot;&gt;// a to b to c, but not c to d&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;If &lt;tt&gt;arg__1&lt;/tt&gt; or &lt;tt&gt;arg__2&lt;/tt&gt; has a focus proxy, &lt;a href=&quot;QWidget.html#setTabOrder(com.trolltech.qt.gui.QWidget, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setTabOrder&lt;/tt&gt;&lt;/a&gt; correctly substitutes the proxy.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setFocusPolicy(com.trolltech.qt.core.Qt.FocusPolicy)&quot;&gt;&lt;tt&gt;setFocusPolicy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QWidget.html#setFocusProxy(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setFocusProxy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/focus.html&quot;&gt;Keyboard Focus&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="RenderFlag" doc="/**
&lt;p&gt;This enum describes how to render the widget when calling QWidget::render().&lt;/p&gt;
 */">
        <enum-value name="DrawWindowBackground" doc="/**
&lt;p&gt;If you enable this option, the widget's background is rendered into the target even if &lt;a href=&quot;QWidget.html#autoFillBackground()&quot;&gt;&lt;tt&gt;autoFillBackground&lt;/tt&gt;&lt;/a&gt; is not set. By default, this option is enabled.&lt;/p&gt;
 */"/>
        <enum-value name="DrawChildren" doc="/**
&lt;p&gt;If you enable this option, the widget's children are rendered recursively into the target. By default, this option is enabled.&lt;/p&gt;
 */"/>
        <enum-value name="IgnoreMask" doc="/**
&lt;p&gt;If you enable this option, the widget's QWidget::mask() is ignored when rendering into the target. By default, this option is disabled.&lt;/p&gt;
 */"/>
</enum>
</class>