File: qstyleoptionviewitem.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 (61 lines) | stat: -rw-r--r-- 7,676 bytes parent folder | download
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
<?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>QStyleOptionViewItem 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">QStyleOptionViewItem Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget. <a href="#details">More...</a></p>
<p>Inherits <a href="qstyleoption.html">QStyleOption</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qstyleoptionviewitem.html#Position-enum">Position</a></b> { Left, Right, Top, Bottom }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qstyleoptionviewitem.html#QStyleOptionViewItem">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstyleoptionviewitem.html#QStyleOptionViewItem-2">__init__</a></b> (<i>self</i>, QStyleOptionViewItem&#160;<i>other</i>)</li></ul><h3>Members</h3><ul><li><div class="fn" />Qt.Alignment <b><a href="qstyleoptionviewitem.html#decorationAlignment-var">decorationAlignment</a></b></li><li><div class="fn" />Position <b><a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a></b></li><li><div class="fn" />QSize <b><a href="qstyleoptionviewitem.html#decorationSize-var">decorationSize</a></b></li><li><div class="fn" />Qt.Alignment <b><a href="qstyleoptionviewitem.html#displayAlignment-var">displayAlignment</a></b></li><li><div class="fn" />QFont <b><a href="qstyleoptionviewitem.html#font-var">font</a></b></li><li><div class="fn" />bool <b><a href="qstyleoptionviewitem.html#showDecorationSelected-var">showDecorationSelected</a></b></li><li><div class="fn" />Qt.TextElideMode <b><a href="qstyleoptionviewitem.html#textElideMode-var">textElideMode</a></b></li></ul><h3>Static Members</h3><ul><li><div class="fn" />int <b><a href="qstyleoptionviewitem.html#Type-var">Type</a></b></li><li><div class="fn" />int <b><a href="qstyleoptionviewitem.html#Version-var">Version</a></b></li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget.</p>
<p>The QStyleOptionViewItem class is used by Qt's model/view classes to draw their items.</p>
<p>See also <a href="model-view-programming.html">Model/View Programming</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="Position-enum" />QStyleOptionViewItem.Position</h3><p>This enum describes the position of the item's decoration.</p>
<table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr>
<th width="25%">Constant</th>
<th width="15%">Value</th>
<th width="60%">Description</th>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionViewItem.Left</tt></td>
<td align="center" valign="top"><tt>0</tt></td>
<td valign="top">On the left of the text.</td>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionViewItem.Right</tt></td>
<td align="center" valign="top"><tt>1</tt></td>
<td valign="top">On the right of the text.</td>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionViewItem.Top</tt></td>
<td align="center" valign="top"><tt>2</tt></td>
<td valign="top">Above the text.</td>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionViewItem.Bottom</tt></td>
<td align="center" valign="top"><tt>3</tt></td>
<td valign="top">Below the text.</td>
</tr>
</table>
<br />
<br />
<p>See also <a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QStyleOptionViewItem" />QStyleOptionViewItem.__init__ (<i>self</i>)</h3><p>Constructs a <a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a>. The members variables are initialized to default values.</p>
<h3 class="fn"><a name="QStyleOptionViewItem-2" />QStyleOptionViewItem.__init__ (<i>self</i>, <a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a>&#160;<i>other</i>)</h3><p>Constructs a copy of the <i>other</i> style option.</p>
<hr /><h2>Member Documentation</h2><h3 class="fn"><a name="decorationAlignment-var" /><a href="qt-alignment.html">Qt.Alignment</a> decorationAlignment</h3><p>This variable holds the alignment of the decoration for the item.</p>
<h3 class="fn"><a name="decorationPosition-var" /><a href="qstyleoptionviewitem.html#Position-enum">Position</a> decorationPosition</h3><p>This variable holds the position of the decoration for the item.</p>
<p>See also <a href="qstyleoptionviewitem.html#Position-enum">Position</a>.</p>
<h3 class="fn"><a name="decorationSize-var" /><a href="qsize.html">QSize</a> decorationSize</h3><p>This variable holds the size of the decoration for the item.</p>
<p>See also <a href="qstyleoptionviewitem.html#decorationAlignment-var">decorationAlignment</a> and <a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a>.</p>
<h3 class="fn"><a name="displayAlignment-var" /><a href="qt-alignment.html">Qt.Alignment</a> displayAlignment</h3><p>This variable holds the alignment of the display value for the item.</p>
<h3 class="fn"><a name="font-var" /><a href="qfont.html">QFont</a> font</h3><p>This variable holds the font used for the item.</p>
<p>See also <a href="qfont.html">QFont</a>.</p>
<h3 class="fn"><a name="showDecorationSelected-var" />bool showDecorationSelected</h3><p>This variable holds whether the decoration should be highlighted on selected items.</p>
<p>If this option is true, the branch and any decorations on selected items should be highlighted, indicating that the item is selected; otherwise, no highlighting is required.</p>
<p>See also <a href="qstyle.html#StyleHint-enum">QStyle.SH_ItemView_ShowDecorationSelected</a> and <a href="qabstractitemview.html">QAbstractItemView</a>.</p>
<h3 class="fn"><a name="textElideMode-var" /><a href="qt.html#TextElideMode-enum">Qt.TextElideMode</a> textElideMode</h3><p>This variable holds where ellipsis should be added for text that is too long to fit into an item.</p>
<p>See also <a href="qt.html#TextElideMode-enum">Qt.TextElideMode</a> and <a href="qstyle.html#StyleHint-enum">QStyle.SH_ItemView_EllipsisLocation</a>.</p>
<h3 class="fn"><a name="Type-var" />int Type</h3><p>This member should be treated as a constant.</p><p>Equals <a href="qstyleoption.html#OptionType-enum">SO_ViewItem</a>.</p>
<h3 class="fn"><a name="Version-var" />int Version</h3><p>This member should be treated as a constant.</p><p>Equals 1.</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>