File: qlibraryinfo.html

package info (click to toggle)
python-qt4 4.9.3-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 34,432 kB
  • sloc: python: 34,126; cpp: 11,938; xml: 290; makefile: 223; php: 27
file content (144 lines) | stat: -rw-r--r-- 8,001 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
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
<?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>QLibraryInfo 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="index.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">QLibraryInfo Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QLibraryInfo class provides information about the Qt
library. <a href="#details">More...</a></p>

<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qlibraryinfo.html#LibraryLocation-enum">LibraryLocation</a></b> { PrefixPath, DocumentationPath, HeadersPath, LibrariesPath, ..., ImportsPath }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qlibraryinfo.html#QLibraryInfo">__init__</a></b> (<i>self</i>, QLibraryInfo)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />QDate <b><a href="qlibraryinfo.html#buildDate">buildDate</a></b> ()</li><li><div class="fn" />QString <b><a href="qlibraryinfo.html#buildKey">buildKey</a></b> ()</li><li><div class="fn" />QString <b><a href="qlibraryinfo.html#licensedProducts">licensedProducts</a></b> ()</li><li><div class="fn" />QString <b><a href="qlibraryinfo.html#licensee">licensee</a></b> ()</li><li><div class="fn" />QString <b><a href="qlibraryinfo.html#location">location</a></b> (LibraryLocation)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QLibraryInfo class provides information about the Qt
library.</p>
<p>Many pieces of information are established when Qt is
configured. Installation paths, license information, and even a
unique build key. This class provides an abstraction for accessing
this information.</p>
<table class="generic">
<thead>
<tr class="qt-style">
<th>Function</th>
<th>Return value</th>
</tr>
</thead>
<tr class="odd" valign="top">
<td><a href="qlibraryinfo.html#buildKey">buildKey</a>()</td>
<td>A string that identifies the Qt version and the configuration.
This key is used to ensure that <a href="plugins.html">plugins</a>
link against the same version of Qt as the application.</td>
</tr>
<tr class="even" valign="top">
<td><a href="qlibraryinfo.html#location">location</a>()</td>
<td>The path to a certain Qt component (e.g., documentation, header
files).</td>
</tr>
<tr class="odd" valign="top">
<td><a href="qlibraryinfo.html#licensee">licensee</a>(), <a href="qlibraryinfo.html#licensedProducts">licensedProducts</a>()</td>
<td>Licensing information.</td>
</tr>
</table>
<p>You can also use a <tt>qt.conf</tt> file to override the
hard-coded paths that are compiled into the Qt library. For more
information, see the <a href="qt-conf.html">Using qt.conf</a>
documentation.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="LibraryLocation-enum" />QLibraryInfo.LibraryLocation</h3><a id="library-location" name="library-location" />
<p>This enum type is used to specify a specific location
specifier:</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>QLibraryInfo.PrefixPath</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The default prefix for all paths.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.DocumentationPath</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">The location for documentation upon
install.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.HeadersPath</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">The location for all headers.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.LibrariesPath</tt></td>
<td class="topAlign"><tt>3</tt></td>
<td class="topAlign">The location of installed libraries.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.BinariesPath</tt></td>
<td class="topAlign"><tt>4</tt></td>
<td class="topAlign">The location of installed Qt binaries (tools
and applications).</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.PluginsPath</tt></td>
<td class="topAlign"><tt>5</tt></td>
<td class="topAlign">The location of installed Qt plugins.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.ImportsPath</tt></td>
<td class="topAlign"><tt>11</tt></td>
<td class="topAlign">The location of installed QML extensions to
import.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.DataPath</tt></td>
<td class="topAlign"><tt>6</tt></td>
<td class="topAlign">The location of general Qt data.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.TranslationsPath</tt></td>
<td class="topAlign"><tt>7</tt></td>
<td class="topAlign">The location of translation information for Qt
strings.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.SettingsPath</tt></td>
<td class="topAlign"><tt>8</tt></td>
<td class="topAlign">The location for Qt settings.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.ExamplesPath</tt></td>
<td class="topAlign"><tt>10</tt></td>
<td class="topAlign">The location for examples upon install.</td>
</tr>
<tr>
<td class="topAlign"><tt>QLibraryInfo.DemosPath</tt></td>
<td class="topAlign"><tt>9</tt></td>
<td class="topAlign">The location for demos upon install.</td>
</tr>
</table>
<p><b>See also</b> <a href="qlibraryinfo.html#location">location</a>().</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QLibraryInfo" />QLibraryInfo.__init__ (<i>self</i>, <a href="qlibraryinfo.html">QLibraryInfo</a>)</h3><h3 class="fn"><a name="buildDate" /><a href="qdate.html">QDate</a> QLibraryInfo.buildDate ()</h3><p>Returns the installation date for this build of Qt. The install
date will usually be the last time that Qt sources were
configured.</p>
<p>This function was introduced in Qt 4.6.</p>


<h3 class="fn"><a name="buildKey" />QString QLibraryInfo.buildKey ()</h3><p>Returns a unique key identifying this build of Qt and its
configurations. This key is not globally unique, rather only useful
for establishing of two configurations are compatible. This can be
used to compare with the <tt>QT_BUILD_KEY</tt> preprocessor
symbol.</p>
<p><b>See also</b> <a href="qlibraryinfo.html#location">location</a>().</p>


<h3 class="fn"><a name="licensedProducts" />QString QLibraryInfo.licensedProducts ()</h3><p>Returns the products that the license for this build of Qt has
access to.</p>
<p><b>See also</b> <a href="qlibraryinfo.html#licensee">licensee</a>().</p>


<h3 class="fn"><a name="licensee" />QString QLibraryInfo.licensee ()</h3><p>Returns the person to whom this build of Qt is licensed.</p>
<p><b>See also</b> <a href="qlibraryinfo.html#licensedProducts">licensedProducts</a>().</p>


<h3 class="fn"><a name="location" />QString QLibraryInfo.location (<a href="qlibraryinfo.html#LibraryLocation-enum">LibraryLocation</a>)</h3><p>Returns the location specified by <i>loc</i>.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.9.3 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.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.2</td></tr></table></div></address></body></html>