File: qstyleoptiontoolbar.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 (85 lines) | stat: -rw-r--r-- 10,350 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?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>QStyleOptionToolBar 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">QStyleOptionToolBar Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QStyleOptionToolBar class is used to describe the parameters for drawing a toolbar. <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="qstyleoptiontoolbar.html#ToolBarFeature-enum">ToolBarFeature</a></b> { None, Movable }</li><li><div class="fn" />class <b><a href="qstyleoptiontoolbar-toolbarfeatures.html">ToolBarFeatures</a></b></li><li><div class="fn" />enum <b><a href="qstyleoptiontoolbar.html#ToolBarPosition-enum">ToolBarPosition</a></b> { Beginning, Middle, End, OnlyOne }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qstyleoptiontoolbar.html#QStyleOptionToolBar">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qstyleoptiontoolbar.html#QStyleOptionToolBar-2">__init__</a></b> (<i>self</i>, QStyleOptionToolBar&#160;<i>other</i>)</li></ul><h3>Members</h3><ul><li><div class="fn" />ToolBarFeatures <b><a href="qstyleoptiontoolbar.html#features-var">features</a></b></li><li><div class="fn" />int <b><a href="qstyleoptiontoolbar.html#lineWidth-var">lineWidth</a></b></li><li><div class="fn" />int <b><a href="qstyleoptiontoolbar.html#midLineWidth-var">midLineWidth</a></b></li><li><div class="fn" />ToolBarPosition <b><a href="qstyleoptiontoolbar.html#positionOfLine-var">positionOfLine</a></b></li><li><div class="fn" />ToolBarPosition <b><a href="qstyleoptiontoolbar.html#positionWithinLine-var">positionWithinLine</a></b></li><li><div class="fn" />Qt.ToolBarArea <b><a href="qstyleoptiontoolbar.html#toolBarArea-var">toolBarArea</a></b></li></ul><h3>Static Members</h3><ul><li><div class="fn" />int <b><a href="qstyleoptiontoolbar.html#Type-var">Type</a></b></li><li><div class="fn" />int <b><a href="qstyleoptiontoolbar.html#Version-var">Version</a></b></li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QStyleOptionToolBar class is used to describe the parameters for drawing a toolbar.</p>
<p>The QStyleOptionToolBar class holds the <a href="qstyleoptiontoolbar.html#lineWidth-var">lineWidth</a> and the <a href="qstyleoptiontoolbar.html#midLineWidth-var">midLineWidth</a> for drawing the widget. It also stores information about which <a href="qstyleoptiontoolbar.html#toolBarArea-var">area</a> the toolbar should be located in, whether it is movable or not, which position the toolbar line should have (<a href="qstyleoptiontoolbar.html#positionOfLine-var">positionOfLine</a>), and the toolbar's position within the line (<a href="qstyleoptiontoolbar.html#positionWithinLine-var">positionWithinLine</a>).</p>
<p>In addition, the class provides a couple of enums: The <a href="qstyleoptiontoolbar.html#ToolBarFeature-enum">ToolBarFeature</a> enum is used to describe whether a toolbar is movable or not, and the <a href="qstyleoptiontoolbar.html#ToolBarPosition-enum">ToolBarPosition</a> enum is used to describe the position of a toolbar line, as well as the toolbar's position within the line.</p>
<p>For an example demonstrating how style options can be used, see the <a href="widgets-styles.html">Styles</a> example.</p>
<p>See also <a href="qstyleoption.html">QStyleOption</a>.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="ToolBarFeature-enum" />QStyleOptionToolBar.ToolBarFeature</h3><p>This enum is used to describe whether a toolbar is movable or not.</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>QStyleOptionToolBar.None</tt></td>
<td align="center" valign="top"><tt>0x0</tt></td>
<td valign="top">The toolbar cannot be moved. The default value.</td>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionToolBar.Movable</tt></td>
<td align="center" valign="top"><tt>0x1</tt></td>
<td valign="top">The toolbar is movable, and a handle will appear when holding the cursor over the toolbar's boundary.</td>
</tr>
</table>
<br />
<br />
<p>The ToolBarFeatures type is a typedef for <a href="qflags.html">QFlags</a>&lt;ToolBarFeature&gt;. It stores an OR combination of ToolBarFeature values.</p>
<p>See also <a href="qstyleoptiontoolbar.html#features-var">features</a> and <a href="qtoolbar.html#movable-prop">QToolBar.isMovable</a>().</p>
<h3 class="fn"><a name="ToolBarPosition-enum" />QStyleOptionToolBar.ToolBarPosition</h3><p align="center"><img src="images/qstyleoptiontoolbar-position.png" /></p>
<p>This enum is used to describe the position of a toolbar line, as well as the toolbar's position within the line.</p>
<p>The order of the positions within a line starts at the top of a vertical line, and from the left within a horizontal line. The order of the positions for the lines is always from the the parent widget's boundary edges.</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>QStyleOptionToolBar.Beginning</tt></td>
<td align="center" valign="top"><tt>0</tt></td>
<td valign="top">The toolbar is located at the beginning of the line, or the toolbar line is the first of several lines. There can only be one toolbar (and only one line) with this position.</td>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionToolBar.Middle</tt></td>
<td align="center" valign="top"><tt>1</tt></td>
<td valign="top">The toolbar is located in the middle of the line, or the toolbar line is in the middle of several lines. There can several toolbars (and lines) with this position.</td>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionToolBar.End</tt></td>
<td align="center" valign="top"><tt>2</tt></td>
<td valign="top">The toolbar is located at the end of the line, or the toolbar line is the last of several lines. There can only be one toolbar (and only one line) with this position.</td>
</tr>
<tr>
<td valign="top"><tt>QStyleOptionToolBar.OnlyOne</tt></td>
<td align="center" valign="top"><tt>3</tt></td>
<td valign="top">There is only one toolbar or line. This is the default value of the <a href="qstyleoptiontoolbar.html#positionOfLine-var">positionOfLine</a> and <a href="qstyleoptiontoolbar.html#positionWithinLine-var">positionWithinLine</a> variables.</td>
</tr>
</table>
<br />
<br />
<p>See also <a href="qstyleoptiontoolbar.html#positionWithinLine-var">positionWithinLine</a> and <a href="qstyleoptiontoolbar.html#positionOfLine-var">positionOfLine</a>.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QStyleOptionToolBar" />QStyleOptionToolBar.__init__ (<i>self</i>)</h3><p>Constructs a <a href="qstyleoptiontoolbar.html">QStyleOptionToolBar</a>. The members variables are initialized to default values.</p>
<h3 class="fn"><a name="QStyleOptionToolBar-2" />QStyleOptionToolBar.__init__ (<i>self</i>, <a href="qstyleoptiontoolbar.html">QStyleOptionToolBar</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="features-var" /><a href="qstyleoptiontoolbar-toolbarfeatures.html">ToolBarFeatures</a> features</h3><p>This variable holds whether the toolbar is movable or not.</p>
<p>The default value is <a href="qstyleoptiontoolbar.html#ToolBarFeature-enum">None</a>.</p>
<h3 class="fn"><a name="lineWidth-var" />int lineWidth</h3><p>This variable holds the line width for drawing the toolbar.</p>
<p>The default value is 0.</p>
<h3 class="fn"><a name="midLineWidth-var" />int midLineWidth</h3><p>This variable holds the mid-line width for drawing the toolbar.</p>
<p>The default value is 0.</p>
<h3 class="fn"><a name="positionOfLine-var" /><a href="qstyleoptiontoolbar.html#ToolBarPosition-enum">ToolBarPosition</a> positionOfLine</h3><p>This variable holds the position of the toolbar line.</p>
<p>The default value is <a href="qstyleoptiontoolbar.html#ToolBarPosition-enum">QStyleOptionToolBar.OnlyOne</a>.</p>
<h3 class="fn"><a name="positionWithinLine-var" /><a href="qstyleoptiontoolbar.html#ToolBarPosition-enum">ToolBarPosition</a> positionWithinLine</h3><p>This variable holds the position of the toolbar within a line.</p>
<p>The default value is <a href="qstyleoptiontoolbar.html#ToolBarPosition-enum">QStyleOptionToolBar.OnlyOne</a>.</p>
<h3 class="fn"><a name="toolBarArea-var" /><a href="qt.html#ToolBarArea-enum">Qt.ToolBarArea</a> toolBarArea</h3><p>This variable holds the location for drawing the toolbar.</p>
<p>The default value is <a href="qt.html#ToolBarArea-enum">Qt.TopToolBarArea</a>.</p>
<p>See also <a href="qt.html#ToolBarArea-enum">Qt.ToolBarArea</a>.</p>
<h3 class="fn"><a name="Type-var" />int Type</h3><p>This member should be treated as a constant.</p><h3 class="fn"><a name="Version-var" />int Version</h3><p>This member should be treated as a constant.</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>