Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 858

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QMdiSubWindow Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QMdiSubWindow Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QMdiSubWindow class provides a subwindow class for <a href="qmdiarea.html">QMdiArea</a>. <a href="#details">More...</a></p>

<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qmdisubwindow.html#SubWindowOption-enum">SubWindowOption</a></b> { RubberBandResize, RubberBandMove }</li><li><div class="fn" />class <b><a href="qmdisubwindow-subwindowoptions.html">SubWindowOptions</a></b></li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qmdisubwindow.html#QMdiSubWindow">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None, Qt.WindowFlags&#160;<i>flags</i>&#160;=&#160;0)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#changeEvent">changeEvent</a></b> (<i>self</i>, QEvent&#160;<i>changeEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#childEvent">childEvent</a></b> (<i>self</i>, QChildEvent&#160;<i>childEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#closeEvent">closeEvent</a></b> (<i>self</i>, QCloseEvent&#160;<i>closeEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#contextMenuEvent">contextMenuEvent</a></b> (<i>self</i>, QContextMenuEvent&#160;<i>contextMenuEvent</i>)</li><li><div class="fn" />bool <b><a href="qmdisubwindow.html#event">event</a></b> (<i>self</i>, QEvent&#160;<i>event</i>)</li><li><div class="fn" />bool <b><a href="qmdisubwindow.html#eventFilter">eventFilter</a></b> (<i>self</i>, QObject&#160;<i>object</i>, QEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#focusInEvent">focusInEvent</a></b> (<i>self</i>, QFocusEvent&#160;<i>focusInEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#focusOutEvent">focusOutEvent</a></b> (<i>self</i>, QFocusEvent&#160;<i>focusOutEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#hideEvent">hideEvent</a></b> (<i>self</i>, QHideEvent&#160;<i>hideEvent</i>)</li><li><div class="fn" />bool <b><a href="qmdisubwindow.html#isShaded">isShaded</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qmdisubwindow.html#keyboardPageStep">keyboardPageStep</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qmdisubwindow.html#keyboardSingleStep">keyboardSingleStep</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#keyPressEvent">keyPressEvent</a></b> (<i>self</i>, QKeyEvent&#160;<i>keyEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#leaveEvent">leaveEvent</a></b> (<i>self</i>, QEvent&#160;<i>leaveEvent</i>)</li><li><div class="fn" />QMdiArea <b><a href="qmdisubwindow.html#mdiArea">mdiArea</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="qmdisubwindow.html#minimumSizeHint">minimumSizeHint</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#mouseDoubleClickEvent">mouseDoubleClickEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#mouseMoveEvent">mouseMoveEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#mousePressEvent">mousePressEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#mouseReleaseEvent">mouseReleaseEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#moveEvent">moveEvent</a></b> (<i>self</i>, QMoveEvent&#160;<i>moveEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#paintEvent">paintEvent</a></b> (<i>self</i>, QPaintEvent&#160;<i>paintEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#resizeEvent">resizeEvent</a></b> (<i>self</i>, QResizeEvent&#160;<i>resizeEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setKeyboardPageStep">setKeyboardPageStep</a></b> (<i>self</i>, int&#160;<i>step</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setKeyboardSingleStep">setKeyboardSingleStep</a></b> (<i>self</i>, int&#160;<i>step</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setOption">setOption</a></b> (<i>self</i>, SubWindowOption&#160;<i>option</i>, bool&#160;<i>on</i>&#160;=&#160;True)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setSystemMenu">setSystemMenu</a></b> (<i>self</i>, QMenu&#160;<i>systemMenu</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setWidget">setWidget</a></b> (<i>self</i>, QWidget&#160;<i>widget</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#showEvent">showEvent</a></b> (<i>self</i>, QShowEvent&#160;<i>showEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#showShaded">showShaded</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#showSystemMenu">showSystemMenu</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="qmdisubwindow.html#sizeHint">sizeHint</a></b> (<i>self</i>)</li><li><div class="fn" />QMenu <b><a href="qmdisubwindow.html#systemMenu">systemMenu</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qmdisubwindow.html#testOption">testOption</a></b> (<i>self</i>, SubWindowOption)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#timerEvent">timerEvent</a></b> (<i>self</i>, QTimerEvent&#160;<i>timerEvent</i>)</li><li><div class="fn" />QWidget <b><a href="qmdisubwindow.html#widget">widget</a></b> (<i>self</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qmdisubwindow.html#aboutToActivate">aboutToActivate</a></b> ()</li><li><div class="fn" />void <b><a href="qmdisubwindow.html#windowStateChanged">windowStateChanged</a></b> (Qt::WindowStates,Qt::WindowStates)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QMdiSubWindow class provides a subwindow class for <a href="qmdiarea.html">QMdiArea</a>.</p>
<p>QMdiSubWindow represents a top-level window in a <a href="qmdiarea.html">QMdiArea</a>, and consists of a title bar with
window decorations, an internal widget, and (depending on the
current style) a window frame and a size grip. QMdiSubWindow has
its own layout, which consists of the title bar and a center area
for the internal widget.</p>
<p class="centerAlign"><img alt="" src="images/qmdisubwindowlayout.png" /></p>
<p>The most common way to construct a QMdiSubWindow is to call
<a href="qmdiarea.html#addSubWindow">QMdiArea.addSubWindow</a>()
with the internal widget as the argument. You can also create a
subwindow yourself, and set an internal widget by calling <a href="qmdisubwindow.html#setWidget">setWidget</a>().</p>
<p>You use the same API when programming with subwindows as with
regular top-level windows (e.g., you can call functions such as
<a href="qwidget.html#show">show</a>(), <a href="qwidget.html#hide">hide</a>(), <a href="qwidget.html#showMaximized">showMaximized</a>(), and <a href="qwidget.html#windowTitle-prop">setWindowTitle</a>()).</p>
<a id="subwindow-handling" name="subwindow-handling" />
<h3>Subwindow Handling</h3>
<p>QMdiSubWindow also supports behavior specific to subwindows in
an MDI area.</p>
<p>By default, each QMdiSubWindow is visible inside the MDI area
viewport when moved around, but it is also possible to specify
transparent window movement and resizing behavior, where only the
outline of a subwindow is updated during these operations. The
<a href="qmdisubwindow.html#setOption">setOption</a>() function is
used to enable this behavior.</p>
<p>The <a href="qmdisubwindow.html#isShaded">isShaded</a>()
function detects whether the subwindow is currently shaded (i.e.,
the window is collapsed so that only the title bar is visible). To
enter shaded mode, call <a href="qmdisubwindow.html#showShaded">showShaded</a>(). QMdiSubWindow
emits the <a href="qmdisubwindow.html#windowStateChanged">windowStateChanged</a>()
signal whenever the window state has changed (e.g., when the window
becomes minimized, or is restored). It also emits <a href="qmdisubwindow.html#aboutToActivate">aboutToActivate</a>() before
it is activated.</p>
<p>In keyboard-interactive mode, the windows are moved and resized
with the keyboard. You can enter this mode through the system menu
of the window. The <a href="qmdisubwindow.html#keyboardSingleStep-prop">keyboardSingleStep</a>
and <a href="qmdisubwindow.html#keyboardPageStep-prop">keyboardPageStep</a>
properties control the distance the widget is moved or resized for
each keypress event. When shift is pressed down page step is used;
otherwise single step is used.</p>
<p>You can also change the active window with the keyboard. By
pressing the control and tab keys at the same time, the next (using
the current <a href="qmdiarea.html#WindowOrder-enum">WindowOrder</a>) subwindow will be
activated. By pressing control, shift, and tab, you will activate
the previous window. This is equivalent to calling <a href="qmdiarea.html#activateNextSubWindow">activateNextSubWindow()</a>
and <a href="qmdiarea.html#activatePreviousSubWindow">activatePreviousSubWindow()</a>.
Note that these shortcuts overrides global shortcuts, but not the
<a href="qmdiarea.html">QMdiArea</a>s shortcuts.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="SubWindowOption-enum" />QMdiSubWindow.SubWindowOption</h3><p>This enum describes options that customize the behavior of
<a href="qmdisubwindow.html">QMdiSubWindow</a>.</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QMdiSubWindow.RubberBandResize</tt></td>
<td class="topAlign"><tt>0x4</tt></td>
<td class="topAlign">If you enable this option, a rubber band
control is used to represent the subwindow's outline, and the user
resizes this instead of the subwindow itself. As a result, the
subwindow maintains its original position and size until the resize
operation has been completed, at which time it will receive a
single <a href="qresizeevent.html">QResizeEvent</a>. By default,
this option is disabled.</td>
</tr>
<tr>
<td class="topAlign"><tt>QMdiSubWindow.RubberBandMove</tt></td>
<td class="topAlign"><tt>0x8</tt></td>
<td class="topAlign">If you enable this option, a rubber band
control is used to represent the subwindow's outline, and the user
moves this instead of the subwindow itself. As a result, the
subwindow remains in its original position until the move operation
has completed, at which time a <a href="qmoveevent.html">QMoveEvent</a> is sent to the window. By default,
this option is disabled.</td>
</tr>
</table>
<p>The SubWindowOptions type is a typedef for <a href="qflags.html">QFlags</a>&lt;SubWindowOption&gt;. It stores an OR
combination of SubWindowOption values.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QMdiSubWindow" />QMdiSubWindow.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None, <a href="qt-windowflags.html">Qt.WindowFlags</a>&#160;<i>flags</i>&#160;=&#160;0)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a new <a href="qmdisubwindow.html">QMdiSubWindow</a>
widget. The <i>parent</i> and <i>flags</i> arguments are passed to
<a href="qwidget.html">QWidget</a>'s constructor.</p>
<p>Instead of using addSubWindow(), it is also simply possible to
use <a href="qwidget.html#setParent">setParent</a>() when you add
the subwindow to a <a href="qmdiarea.html">QMdiArea</a>.</p>
<p>Note that only <a href="qmdisubwindow.html">QMdiSubWindow</a>s
can be set as children of <a href="qmdiarea.html">QMdiArea</a>; you
cannot, for instance, write:</p>
<pre class="cpp">
 QMdiArea mdiArea;
 QTextEdit editor(&amp;mdiArea); // invalid child widget
</pre>
<p><b>See also</b> <a href="qmdiarea.html#addSubWindow">QMdiArea.addSubWindow</a>().</p>


<h3 class="fn"><a name="changeEvent" />QMdiSubWindow.changeEvent (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>changeEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget.changeEvent</a>().</p>


<h3 class="fn"><a name="childEvent" />QMdiSubWindow.childEvent (<i>self</i>, <a href="qchildevent.html">QChildEvent</a>&#160;<i>childEvent</i>)</h3><p>Reimplemented from <a href="qobject.html#childEvent">QObject.childEvent</a>().</p>


<h3 class="fn"><a name="closeEvent" />QMdiSubWindow.closeEvent (<i>self</i>, <a href="qcloseevent.html">QCloseEvent</a>&#160;<i>closeEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#closeEvent">QWidget.closeEvent</a>().</p>


<h3 class="fn"><a name="contextMenuEvent" />QMdiSubWindow.contextMenuEvent (<i>self</i>, <a href="qcontextmenuevent.html">QContextMenuEvent</a>&#160;<i>contextMenuEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#contextMenuEvent">QWidget.contextMenuEvent</a>().</p>


<h3 class="fn"><a name="event" />bool QMdiSubWindow.event (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qobject.html#event">QObject.event</a>().</p>


<h3 class="fn"><a name="eventFilter" />bool QMdiSubWindow.eventFilter (<i>self</i>, <a href="qobject.html">QObject</a>&#160;<i>object</i>, <a href="qevent.html">QEvent</a>&#160;<i>event</i>)</h3><p>Reimplemented from <a href="qobject.html#eventFilter">QObject.eventFilter</a>().</p>


<h3 class="fn"><a name="focusInEvent" />QMdiSubWindow.focusInEvent (<i>self</i>, <a href="qfocusevent.html">QFocusEvent</a>&#160;<i>focusInEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#focusInEvent">QWidget.focusInEvent</a>().</p>


<h3 class="fn"><a name="focusOutEvent" />QMdiSubWindow.focusOutEvent (<i>self</i>, <a href="qfocusevent.html">QFocusEvent</a>&#160;<i>focusOutEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#focusOutEvent">QWidget.focusOutEvent</a>().</p>


<h3 class="fn"><a name="hideEvent" />QMdiSubWindow.hideEvent (<i>self</i>, <a href="qhideevent.html">QHideEvent</a>&#160;<i>hideEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#hideEvent">QWidget.hideEvent</a>().</p>


<h3 class="fn"><a name="isShaded" />bool QMdiSubWindow.isShaded (<i>self</i>)</h3><p>Returns true if this window is shaded; otherwise returns
false.</p>
<p>A window is shaded if it is collapsed so that only the title bar
is visible.</p>


<h3 class="fn"><a name="keyboardPageStep" />int QMdiSubWindow.keyboardPageStep (<i>self</i>)</h3><h3 class="fn"><a name="keyboardSingleStep" />int QMdiSubWindow.keyboardSingleStep (<i>self</i>)</h3><h3 class="fn"><a name="keyPressEvent" />QMdiSubWindow.keyPressEvent (<i>self</i>, <a href="qkeyevent.html">QKeyEvent</a>&#160;<i>keyEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget.keyPressEvent</a>().</p>


<h3 class="fn"><a name="leaveEvent" />QMdiSubWindow.leaveEvent (<i>self</i>, <a href="qevent.html">QEvent</a>&#160;<i>leaveEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#leaveEvent">QWidget.leaveEvent</a>().</p>


<h3 class="fn"><a name="mdiArea" /><a href="qmdiarea.html">QMdiArea</a> QMdiSubWindow.mdiArea (<i>self</i>)</h3><p>Returns the area containing this sub-window, or 0 if there is
none.</p>
<p>This function was introduced in Qt 4.4.</p>
<p><b>See also</b> <a href="qmdiarea.html#addSubWindow">QMdiArea.addSubWindow</a>().</p>


<h3 class="fn"><a name="minimumSizeHint" /><a href="qsize.html">QSize</a> QMdiSubWindow.minimumSizeHint (<i>self</i>)</h3><p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget.minimumSizeHint</a>().</p>


<h3 class="fn"><a name="mouseDoubleClickEvent" />QMdiSubWindow.mouseDoubleClickEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>mouseEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#mouseDoubleClickEvent">QWidget.mouseDoubleClickEvent</a>().</p>


<h3 class="fn"><a name="mouseMoveEvent" />QMdiSubWindow.mouseMoveEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>mouseEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget.mouseMoveEvent</a>().</p>


<h3 class="fn"><a name="mousePressEvent" />QMdiSubWindow.mousePressEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>mouseEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget.mousePressEvent</a>().</p>


<h3 class="fn"><a name="mouseReleaseEvent" />QMdiSubWindow.mouseReleaseEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>mouseEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#mouseReleaseEvent">QWidget.mouseReleaseEvent</a>().</p>


<h3 class="fn"><a name="moveEvent" />QMdiSubWindow.moveEvent (<i>self</i>, <a href="qmoveevent.html">QMoveEvent</a>&#160;<i>moveEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#moveEvent">QWidget.moveEvent</a>().</p>


<h3 class="fn"><a name="paintEvent" />QMdiSubWindow.paintEvent (<i>self</i>, <a href="qpaintevent.html">QPaintEvent</a>&#160;<i>paintEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget.paintEvent</a>().</p>


<h3 class="fn"><a name="resizeEvent" />QMdiSubWindow.resizeEvent (<i>self</i>, <a href="qresizeevent.html">QResizeEvent</a>&#160;<i>resizeEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget.resizeEvent</a>().</p>


<h3 class="fn"><a name="setKeyboardPageStep" />QMdiSubWindow.setKeyboardPageStep (<i>self</i>, int&#160;<i>step</i>)</h3><h3 class="fn"><a name="setKeyboardSingleStep" />QMdiSubWindow.setKeyboardSingleStep (<i>self</i>, int&#160;<i>step</i>)</h3><h3 class="fn"><a name="setOption" />QMdiSubWindow.setOption (<i>self</i>, <a href="qmdisubwindow.html#SubWindowOption-enum">SubWindowOption</a>&#160;<i>option</i>, bool&#160;<i>on</i>&#160;=&#160;True)</h3><p>If <i>on</i> is true, <i>option</i> is enabled on the subwindow;
otherwise it is disabled. See <a href="qmdisubwindow.html#SubWindowOption-enum">SubWindowOption</a> for
the effect of each option.</p>
<p><b>See also</b> <a href="qmdisubwindow.html#SubWindowOption-enum">SubWindowOption</a> and
<a href="qmdisubwindow.html#testOption">testOption</a>().</p>


<h3 class="fn"><a name="setSystemMenu" />QMdiSubWindow.setSystemMenu (<i>self</i>, <a href="qmenu.html">QMenu</a>&#160;<i>systemMenu</i>)</h3><p>The <i>systemMenu</i> argument has it's ownership transferred to Qt.</p><p>Sets <i>systemMenu</i> as the current system menu for this
subwindow.</p>
<p>By default, each <a href="qmdisubwindow.html">QMdiSubWindow</a>
has a standard system menu.</p>
<p>QActions for the system menu created by <a href="qmdisubwindow.html">QMdiSubWindow</a> will automatically be
updated depending on the current window state; e.g., the minimize
action will be disabled after the window is minimized.</p>
<p>QActions added by the user are not updated by <a href="qmdisubwindow.html">QMdiSubWindow</a>.</p>
<p><a href="qmdisubwindow.html">QMdiSubWindow</a> takes ownership
of <i>systemMenu</i>; you do not have to delete it. Any existing
menus will be deleted.</p>
<p><b>See also</b> <a href="qmdisubwindow.html#systemMenu">systemMenu</a>() and <a href="qmdisubwindow.html#showSystemMenu">showSystemMenu</a>().</p>


<h3 class="fn"><a name="setWidget" />QMdiSubWindow.setWidget (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>widget</i>)</h3><p>The <i>widget</i> argument has it's ownership transferred to Qt.</p><p>Sets <i>widget</i> as the internal widget of this subwindow. The
internal widget is displayed in the center of the subwindow beneath
the title bar.</p>
<p><a href="qmdisubwindow.html">QMdiSubWindow</a> takes temporary
ownership of <i>widget</i>; you do not have to delete it. Any
existing internal widget will be removed and reparented to the root
window.</p>
<p><b>See also</b> <a href="qmdisubwindow.html#widget">widget</a>().</p>


<h3 class="fn"><a name="showEvent" />QMdiSubWindow.showEvent (<i>self</i>, <a href="qshowevent.html">QShowEvent</a>&#160;<i>showEvent</i>)</h3><p>Reimplemented from <a href="qwidget.html#showEvent">QWidget.showEvent</a>().</p>


<h3 class="fn"><a name="showShaded" />QMdiSubWindow.showShaded (<i>self</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void showShaded()</tt>.</p><p>Calling this function makes the subwindow enter the shaded mode.
When the subwindow is shaded, only the title bar is visible.</p>
<p>Although shading is not supported by all styles, this function
will still show the subwindow as shaded, regardless of whether
support for shading is available. However, when used with styles
without shading support, the user will be unable to return from
shaded mode through the user interface (e.g., through a shade
button in the title bar).</p>
<p><b>See also</b> <a href="qmdisubwindow.html#isShaded">isShaded</a>().</p>


<h3 class="fn"><a name="showSystemMenu" />QMdiSubWindow.showSystemMenu (<i>self</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void showSystemMenu()</tt>.</p><p>Shows the system menu below the system menu icon in the title
bar.</p>
<p><b>See also</b> <a href="qmdisubwindow.html#setSystemMenu">setSystemMenu</a>() and <a href="qmdisubwindow.html#systemMenu">systemMenu</a>().</p>


<h3 class="fn"><a name="sizeHint" /><a href="qsize.html">QSize</a> QMdiSubWindow.sizeHint (<i>self</i>)</h3><p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget.sizeHint</a>().</p>


<h3 class="fn"><a name="systemMenu" /><a href="qmenu.html">QMenu</a> QMdiSubWindow.systemMenu (<i>self</i>)</h3><p>Returns a pointer to the current system menu, or zero if no
system menu is set. <a href="qmdisubwindow.html">QMdiSubWindow</a>
provides a default system menu, but you can also set the menu with
<a href="qmdisubwindow.html#setSystemMenu">setSystemMenu</a>().</p>
<p><b>See also</b> <a href="qmdisubwindow.html#setSystemMenu">setSystemMenu</a>() and <a href="qmdisubwindow.html#showSystemMenu">showSystemMenu</a>().</p>


<h3 class="fn"><a name="testOption" />bool QMdiSubWindow.testOption (<i>self</i>, <a href="qmdisubwindow.html#SubWindowOption-enum">SubWindowOption</a>)</h3><p>Returns true if <i>option</i> is enabled; otherwise returns
false.</p>
<p><b>See also</b> <a href="qmdisubwindow.html#SubWindowOption-enum">SubWindowOption</a> and
<a href="qmdisubwindow.html#setOption">setOption</a>().</p>


<h3 class="fn"><a name="timerEvent" />QMdiSubWindow.timerEvent (<i>self</i>, <a href="qtimerevent.html">QTimerEvent</a>&#160;<i>timerEvent</i>)</h3><p>Reimplemented from <a href="qobject.html#timerEvent">QObject.timerEvent</a>().</p>


<h3 class="fn"><a name="widget" /><a href="qwidget.html">QWidget</a> QMdiSubWindow.widget (<i>self</i>)</h3><p>Returns the current internal widget.</p>
<p><b>See also</b> <a href="qmdisubwindow.html#setWidget">setWidget</a>().</p>


<hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="aboutToActivate" />void aboutToActivate ()</h3><p>This is the default overload of this signal.</p><p><a href="qmdisubwindow.html">QMdiSubWindow</a> emits this signal
immediately before it is activated. After the subwindow has been
activated, the <a href="qmdiarea.html">QMdiArea</a> that manages
the subwindow will also emit the <a href="qmdiarea.html#subWindowActivated">subWindowActivated()</a>
signal.</p>
<p><b>See also</b> <a href="qmdiarea.html#subWindowActivated">QMdiArea.subWindowActivated</a>().</p>


<h3 class="fn"><a name="windowStateChanged" />void windowStateChanged (Qt::WindowStates,Qt::WindowStates)</h3><p>This is the default overload of this signal.</p><p><a href="qmdisubwindow.html">QMdiSubWindow</a> emits this signal
after the window state changes. <i>oldState</i> is the window state
before it changed, and <i>newState</i> is the new, current
state.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>