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
|
<?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>QTableWidgetSelectionRange 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="../pyqt4ref.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">QTableWidgetSelectionRange Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model. <a href="#details">More...</a></p>
<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qtablewidgetselectionrange.html#QTableWidgetSelectionRange">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qtablewidgetselectionrange.html#QTableWidgetSelectionRange-2">__init__</a></b> (<i>self</i>, int, int, int, int)</li><li><div class="fn" /><b><a href="qtablewidgetselectionrange.html#QTableWidgetSelectionRange-3">__init__</a></b> (<i>self</i>, QTableWidgetSelectionRange)</li><li><div class="fn" />int <b><a href="qtablewidgetselectionrange.html#bottomRow">bottomRow</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetselectionrange.html#columnCount">columnCount</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetselectionrange.html#leftColumn">leftColumn</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetselectionrange.html#rightColumn">rightColumn</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetselectionrange.html#rowCount">rowCount</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qtablewidgetselectionrange.html#topRow">topRow</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.</p>
<p>The QTableWidgetSelectionRange class stores the top left and bottom right rows and columns of a selection range in a table. The selections in the table may consist of several selection ranges.</p>
<p><b>Note:</b> If the item within the selection range is marked as not selectable, e.g., <tt>itemFlags() & Qt.ItemIsSelectable == 0</tt> then it will not appear in the selection range.</p>
<p>See also <a href="qtablewidget.html">QTableWidget</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QTableWidgetSelectionRange" />QTableWidgetSelectionRange.__init__ (<i>self</i>)</h3><p>Constructs an table selection range, i.e. a range whose <a href="qtablewidgetselectionrange.html#rowCount">rowCount</a>() and <a href="qtablewidgetselectionrange.html#columnCount">columnCount</a>() are 0.</p>
<h3 class="fn"><a name="QTableWidgetSelectionRange-2" />QTableWidgetSelectionRange.__init__ (<i>self</i>, int, int, int, int)</h3><p>Constructs the table selection range from the given <i>top</i>, <i>left</i>, <i>bottom</i> and <i>right</i> table rows and columns.</p>
<p>See also <a href="qtablewidgetselectionrange.html#topRow">topRow</a>(), <a href="qtablewidgetselectionrange.html#leftColumn">leftColumn</a>(), <a href="qtablewidgetselectionrange.html#bottomRow">bottomRow</a>(), and <a href="qtablewidgetselectionrange.html#rightColumn">rightColumn</a>().</p>
<h3 class="fn"><a name="QTableWidgetSelectionRange-3" />QTableWidgetSelectionRange.__init__ (<i>self</i>, <a href="qtablewidgetselectionrange.html">QTableWidgetSelectionRange</a>)</h3><p>Constructs a the table selection range by copying the given <i>other</i> table selection range.</p>
<a name="//apple_ref/cpp/instm/QTableWidgetSelectionRange/~QTableWidgetSelectionRange" />
<h3 class="fn"><a name="bottomRow" />int QTableWidgetSelectionRange.bottomRow (<i>self</i>)</h3><p>Returns the bottom row of the range.</p>
<p>See also <a href="qtablewidgetselectionrange.html#topRow">topRow</a>(), <a href="qtablewidgetselectionrange.html#rightColumn">rightColumn</a>(), and <a href="qtablewidgetselectionrange.html#rowCount">rowCount</a>().</p>
<a name="//apple_ref/cpp/instm/QTableWidgetSelectionRange/columnCount" />
<h3 class="fn"><a name="columnCount" />int QTableWidgetSelectionRange.columnCount (<i>self</i>)</h3><p>Returns the number of columns in the range.</p>
<p>This is equivalent to <a href="qtablewidgetselectionrange.html#rightColumn">rightColumn</a>() - <a href="qtablewidgetselectionrange.html#leftColumn">leftColumn</a>() + 1.</p>
<p>This function was introduced in Qt 4.1.</p>
<p>See also <a href="qtablewidgetselectionrange.html#rowCount">rowCount</a>(), <a href="qtablewidgetselectionrange.html#leftColumn">leftColumn</a>(), and <a href="qtablewidgetselectionrange.html#rightColumn">rightColumn</a>().</p>
<a name="//apple_ref/cpp/instm/QTableWidgetSelectionRange/leftColumn" />
<h3 class="fn"><a name="leftColumn" />int QTableWidgetSelectionRange.leftColumn (<i>self</i>)</h3><p>Returns the left column of the range.</p>
<p>See also <a href="qtablewidgetselectionrange.html#rightColumn">rightColumn</a>(), <a href="qtablewidgetselectionrange.html#topRow">topRow</a>(), and <a href="qtablewidgetselectionrange.html#columnCount">columnCount</a>().</p>
<a name="//apple_ref/cpp/instm/QTableWidgetSelectionRange/rightColumn" />
<h3 class="fn"><a name="rightColumn" />int QTableWidgetSelectionRange.rightColumn (<i>self</i>)</h3><p>Returns the right column of the range.</p>
<p>See also <a href="qtablewidgetselectionrange.html#leftColumn">leftColumn</a>(), <a href="qtablewidgetselectionrange.html#bottomRow">bottomRow</a>(), and <a href="qtablewidgetselectionrange.html#columnCount">columnCount</a>().</p>
<a name="//apple_ref/cpp/instm/QTableWidgetSelectionRange/rowCount" />
<h3 class="fn"><a name="rowCount" />int QTableWidgetSelectionRange.rowCount (<i>self</i>)</h3><p>Returns the number of rows in the range.</p>
<p>This is equivalent to <a href="qtablewidgetselectionrange.html#bottomRow">bottomRow</a>() - <a href="qtablewidgetselectionrange.html#topRow">topRow</a>() + 1.</p>
<p>This function was introduced in Qt 4.1.</p>
<p>See also <a href="qtablewidgetselectionrange.html#columnCount">columnCount</a>(), <a href="qtablewidgetselectionrange.html#topRow">topRow</a>(), and <a href="qtablewidgetselectionrange.html#bottomRow">bottomRow</a>().</p>
<a name="//apple_ref/cpp/instm/QTableWidgetSelectionRange/topRow" />
<h3 class="fn"><a name="topRow" />int QTableWidgetSelectionRange.topRow (<i>self</i>)</h3><p>Returns the top row of the range.</p>
<p>See also <a href="qtablewidgetselectionrange.html#bottomRow">bottomRow</a>(), <a href="qtablewidgetselectionrange.html#leftColumn">leftColumn</a>(), and <a href="qtablewidgetselectionrange.html#rowCount">rowCount</a>().</p>
<p /><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.7.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> 2010</td><td align="right" width="25%">Qt 4.6.2</td></tr></table></div></address></body></html>
|