File: qgroupbox.html

package info (click to toggle)
python-qt4 4.0.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,632 kB
  • ctags: 2,639
  • sloc: python: 29,409; sh: 5,646; cpp: 3,168; xml: 149; makefile: 109
file content (19 lines) | stat: -rw-r--r-- 9,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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>QGroupBox 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="../pyqt4ref.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">QGroupBox Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QGroupBox widget provides a group box frame with a title. <a href="#details">More...</a></p>
<p>Inherits <a href="qwidget.html">QWidget</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qgroupbox.html#QGroupBox">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qgroupbox.html#QGroupBox-2">__init__</a></b> (<i>self</i>, QString&#160;<i>title</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" />Qt.Alignment <b><a href="qgroupbox.html#alignment">alignment</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#changeEvent">changeEvent</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" /><b><a href="qgroupbox.html#childEvent">childEvent</a></b> (<i>self</i>, QChildEvent)</li><li><div class="fn" />bool <b><a href="qgroupbox.html#event">event</a></b> (<i>self</i>, QEvent)</li><li><div class="fn" /><b><a href="qgroupbox.html#focusInEvent">focusInEvent</a></b> (<i>self</i>, QFocusEvent)</li><li><div class="fn" />bool <b><a href="qgroupbox.html#isCheckable">isCheckable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qgroupbox.html#isChecked">isChecked</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qgroupbox.html#isFlat">isFlat</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="qgroupbox.html#minimumSizeHint">minimumSizeHint</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#mouseMoveEvent">mouseMoveEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#mousePressEvent">mousePressEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#mouseReleaseEvent">mouseReleaseEvent</a></b> (<i>self</i>, QMouseEvent&#160;<i>event</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#paintEvent">paintEvent</a></b> (<i>self</i>, QPaintEvent)</li><li><div class="fn" /><b><a href="qgroupbox.html#resizeEvent">resizeEvent</a></b> (<i>self</i>, QResizeEvent)</li><li><div class="fn" /><b><a href="qgroupbox.html#setAlignment">setAlignment</a></b> (<i>self</i>, int)</li><li><div class="fn" /><b><a href="qgroupbox.html#setCheckable">setCheckable</a></b> (<i>self</i>, bool&#160;<i>b</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#setChecked">setChecked</a></b> (<i>self</i>, bool&#160;<i>b</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#setFlat">setFlat</a></b> (<i>self</i>, bool&#160;<i>b</i>)</li><li><div class="fn" /><b><a href="qgroupbox.html#setTitle">setTitle</a></b> (<i>self</i>, QString)</li><li><div class="fn" />QString <b><a href="qgroupbox.html#title">title</a></b> (<i>self</i>)</li></ul><h3>Qt Signals</h3><ul><li><div class="fn" />void <b><a href="qgroupbox.html#toggled">toggled</a></b> (bool)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QGroupBox widget provides a group box frame with a title.</p>
<p>A group box provides a frame, a title and a keyboard shortcut, and displays various other widgets inside itself. The title is on top, the keyboard shortcut moves keyboard focus to one of the group box's child widgets.</p>
<p>QGroupBox also lets you set the <a href="qgroupbox.html#title-prop">title</a> (normally set in the constructor) and the title's <a href="qgroupbox.html#alignment-prop">alignment</a>(). If setCheckable(true) is called then the group box is <a href="qgroupbox.html#checkable-prop">isCheckable</a>(), and it can be <a href="qgroupbox.html#checked-prop">setChecked</a>(). Checkable group boxes child widgets are enabled or disabled depending on whether or not the group box is <a href="qgroupbox.html#checked-prop">isChecked</a>().</p>
<p>To minimize space consumption, you can remove the right, left and bottom edges of the frame with <a href="qgroupbox.html#flat-prop">setFlat</a>().</p>
<p><img alt="Screenshot in Plastique style" src="images/plastique-groupbox.png" /> <img alt="Screenshot in Windows style" src="images/windows-groupbox.png" /></p>
<p>See also <a href="qbuttongroup.html">QButtonGroup</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QGroupBox" />QGroupBox.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</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 group box widget with no title and parent <i>parent</i>.</p>
<h3 class="fn"><a name="QGroupBox-2" />QGroupBox.__init__ (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>title</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</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 group box with the title <i>title</i> and parent <i>parent</i>.</p>
<h3 class="fn"><a name="alignment" /><a href="qt-alignment.html">Qt.Alignment</a> QGroupBox.alignment (<i>self</i>)</h3><h3 class="fn"><a name="changeEvent" />QGroupBox.changeEvent (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><h3 class="fn"><a name="childEvent" />QGroupBox.childEvent (<i>self</i>, <a href="qchildevent.html">QChildEvent</a>)</h3><h3 class="fn"><a name="event" />bool QGroupBox.event (<i>self</i>, <a href="qevent.html">QEvent</a>)</h3><h3 class="fn"><a name="focusInEvent" />QGroupBox.focusInEvent (<i>self</i>, <a href="qfocusevent.html">QFocusEvent</a>)</h3><h3 class="fn"><a name="isCheckable" />bool QGroupBox.isCheckable (<i>self</i>)</h3><h3 class="fn"><a name="isChecked" />bool QGroupBox.isChecked (<i>self</i>)</h3><h3 class="fn"><a name="isFlat" />bool QGroupBox.isFlat (<i>self</i>)</h3><h3 class="fn"><a name="minimumSizeHint" /><a href="qsize.html">QSize</a> QGroupBox.minimumSizeHint (<i>self</i>)</h3><h3 class="fn"><a name="mouseMoveEvent" />QGroupBox.mouseMoveEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mousePressEvent" />QGroupBox.mousePressEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="mouseReleaseEvent" />QGroupBox.mouseReleaseEvent (<i>self</i>, <a href="qmouseevent.html">QMouseEvent</a>&#160;<i>event</i>)</h3><h3 class="fn"><a name="paintEvent" />QGroupBox.paintEvent (<i>self</i>, <a href="qpaintevent.html">QPaintEvent</a>)</h3><h3 class="fn"><a name="resizeEvent" />QGroupBox.resizeEvent (<i>self</i>, <a href="qresizeevent.html">QResizeEvent</a>)</h3><h3 class="fn"><a name="setAlignment" />QGroupBox.setAlignment (<i>self</i>, int)</h3><h3 class="fn"><a name="setCheckable" />QGroupBox.setCheckable (<i>self</i>, bool&#160;<i>b</i>)</h3><h3 class="fn"><a name="setChecked" />QGroupBox.setChecked (<i>self</i>, bool&#160;<i>b</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setChecked(bool)</tt>.</p><h3 class="fn"><a name="setFlat" />QGroupBox.setFlat (<i>self</i>, bool&#160;<i>b</i>)</h3><h3 class="fn"><a name="setTitle" />QGroupBox.setTitle (<i>self</i>, <a href="qstring.html">QString</a>)</h3><h3 class="fn"><a name="title" /><a href="qstring.html">QString</a> QGroupBox.title (<i>self</i>)</h3><hr /><h2>Qt Signal Documentation</h2><h3 class="fn"><a name="toggled" />void toggled (bool)</h3><p>If the group box has a check box (see <a href="qgroupbox.html#checkable-prop">isCheckable</a>()) this signal is emitted when the check box is toggled. <i>on</i> is true if the check box is checked; otherwise it is false.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td width="25%">PyQt&#160;4.0.1 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.trolltech.com">Trolltech&#160;AS</a> 2006</td><td align="right" width="25%">Qt&#160;4.1.4</td></tr></table></div></address></body></html>