Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > ac91357d6caede925de099a02fced14e > files > 4285

qt4-doc-4.2.1-1.el5_7.1.x86_64.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /tmp/qt-4.2.1-harald-1161357942206/qt-x11-opensource-src-4.2.1/src/corelib/global/qlibraryinfo.cpp -->
<head>
  <title>Qt 4.2: QLibraryInfo Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></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>
<pre> #include &lt;QLibraryInfo&gt;</pre><ul>
<li><a href="qlibraryinfo-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h3>Public Types</h3>
<ul>
<li><div class="fn"/>enum <b><a href="qlibraryinfo.html#LibraryLocation-enum">LibraryLocation</a></b> { PrefixPath, DocumentationPath, HeadersPath, LibrariesPath, ..., DemosPath }</li>
</ul>
<a name="static-public-members"></a>
<h3>Static Public Members</h3>
<ul>
<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 <i>loc</i> )</li>
</ul>
<a name="details"></a>
<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>
<p><table align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Function</th><th>Return value</th></tr></thead>
<tr valign="top" class="odd"><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 valign="top" class="even"><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 valign="top" class="odd"><td><a href="qlibraryinfo.html#licensee">licensee</a>(), <a href="qlibraryinfo.html#licensedProducts">licensedProducts</a>()</td><td>Licensing information.</td></tr>
</table></p>
<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>
<p>See also <a href="qsysinfo.html">QSysInfo</a> and <a href="qt-conf.html">Using qt.conf</a>.</p>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="LibraryLocation-enum"></a>enum QLibraryInfo::LibraryLocation</h3>
<a name="library-location"></a><p>This enum type is used to specify a specific location specifier:</p>
<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>QLibraryInfo::PrefixPath</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The default prefix for all paths.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::DocumentationPath</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The location for documentation upon install.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::HeadersPath</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The location for all headers.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::LibrariesPath</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The location of installed librarires.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::BinariesPath</tt></td><td align="center" valign="top"><tt>4</tt></td><td valign="top">The location of installed Qt binaries (tools and applications).</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::PluginsPath</tt></td><td align="center" valign="top"><tt>5</tt></td><td valign="top">The location of installed Qt plugins.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::DataPath</tt></td><td align="center" valign="top"><tt>6</tt></td><td valign="top">The location of general Qt data.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::TranslationsPath</tt></td><td align="center" valign="top"><tt>7</tt></td><td valign="top">The location of translation information for Qt strings.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::SettingsPath</tt></td><td align="center" valign="top"><tt>8</tt></td><td valign="top">The location for Qt settings.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::ExamplesPath</tt></td><td align="center" valign="top"><tt>10</tt></td><td valign="top">The location for examples upon install.</td></tr>
<tr><td valign="top"><tt>QLibraryInfo::DemosPath</tt></td><td align="center" valign="top"><tt>9</tt></td><td valign="top">The location for demos upon install.</td></tr>
</table></p>
<p>See also <a href="qlibraryinfo.html#location">location</a>().</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="buildKey"></a><a href="qstring.html">QString</a> QLibraryInfo::buildKey ()&nbsp;&nbsp;<tt> [static]</tt></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>See also <a href="qlibraryinfo.html#location">location</a>().</p>
<h3 class="fn"><a name="licensedProducts"></a><a href="qstring.html">QString</a> QLibraryInfo::licensedProducts ()&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Returns the products that the license for this build of Qt has access to.</p>
<p>See also <a href="qlibraryinfo.html#licensee">licensee</a>().</p>
<h3 class="fn"><a name="licensee"></a><a href="qstring.html">QString</a> QLibraryInfo::licensee ()&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Returns the person to whom this build of Qt is licensed.</p>
<p>See also <a href="qlibraryinfo.html#licensedProducts">licensedProducts</a>().</p>
<h3 class="fn"><a name="location"></a><a href="qstring.html">QString</a> QLibraryInfo::location ( <a href="qlibraryinfo.html#LibraryLocation-enum">LibraryLocation</a> <i>loc</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Returns the location specified by <i>loc</i>.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2006 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.2.1</div></td>
</tr></table></div></address></body>
</html>