1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
|
<?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">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <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 <i>parent</i> = None, Qt.WindowFlags <i>flags</i> = 0)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#changeEvent">changeEvent</a></b> (<i>self</i>, QEvent <i>changeEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#childEvent">childEvent</a></b> (<i>self</i>, QChildEvent <i>childEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#closeEvent">closeEvent</a></b> (<i>self</i>, QCloseEvent <i>closeEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#contextMenuEvent">contextMenuEvent</a></b> (<i>self</i>, QContextMenuEvent <i>contextMenuEvent</i>)</li><li><div class="fn" />bool <b><a href="qmdisubwindow.html#event">event</a></b> (<i>self</i>, QEvent <i>event</i>)</li><li><div class="fn" />bool <b><a href="qmdisubwindow.html#eventFilter">eventFilter</a></b> (<i>self</i>, QObject <i>object</i>, QEvent <i>event</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#focusInEvent">focusInEvent</a></b> (<i>self</i>, QFocusEvent <i>focusInEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#focusOutEvent">focusOutEvent</a></b> (<i>self</i>, QFocusEvent <i>focusOutEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#hideEvent">hideEvent</a></b> (<i>self</i>, QHideEvent <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 <i>keyEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#leaveEvent">leaveEvent</a></b> (<i>self</i>, QEvent <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 <i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#mouseMoveEvent">mouseMoveEvent</a></b> (<i>self</i>, QMouseEvent <i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#mousePressEvent">mousePressEvent</a></b> (<i>self</i>, QMouseEvent <i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#mouseReleaseEvent">mouseReleaseEvent</a></b> (<i>self</i>, QMouseEvent <i>mouseEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#moveEvent">moveEvent</a></b> (<i>self</i>, QMoveEvent <i>moveEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#paintEvent">paintEvent</a></b> (<i>self</i>, QPaintEvent <i>paintEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#resizeEvent">resizeEvent</a></b> (<i>self</i>, QResizeEvent <i>resizeEvent</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setKeyboardPageStep">setKeyboardPageStep</a></b> (<i>self</i>, int <i>step</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setKeyboardSingleStep">setKeyboardSingleStep</a></b> (<i>self</i>, int <i>step</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setOption">setOption</a></b> (<i>self</i>, SubWindowOption <i>option</i>, bool <i>on</i> = True)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setSystemMenu">setSystemMenu</a></b> (<i>self</i>, QMenu <i>systemMenu</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#setWidget">setWidget</a></b> (<i>self</i>, QWidget <i>widget</i>)</li><li><div class="fn" /><b><a href="qmdisubwindow.html#showEvent">showEvent</a></b> (<i>self</i>, QShowEvent <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 <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><SubWindowOption>. 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> <i>parent</i> = None, <a href="qt-windowflags.html">Qt.WindowFlags</a> <i>flags</i> = 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(&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> <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> <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> <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> <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> <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> <i>object</i>, <a href="qevent.html">QEvent</a> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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> <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 <i>step</i>)</h3><h3 class="fn"><a name="setKeyboardSingleStep" />QMdiSubWindow.setKeyboardSingleStep (<i>self</i>, int <i>step</i>)</h3><h3 class="fn"><a name="setOption" />QMdiSubWindow.setOption (<i>self</i>, <a href="qmdisubwindow.html#SubWindowOption-enum">SubWindowOption</a> <i>option</i>, bool <i>on</i> = 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> <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> <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> <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> <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 4.9.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.2</td></tr></table></div></address></body></html>
|