This file is indexed.

/usr/share/qt5/doc/qtdoc/deployment-plugins.html is in qt5-doc-html 5.2.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- deployment-plugins.qdoc -->
  <title>Deploying Plugins | QtDoc 5.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">Qt 5.2</a></li>
<li>Deploying Plugins</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#the-plugin-directory">The Plugin Directory</a></li>
<li class="level1"><a href="#loading-and-verifying-plugins-dynamically">Loading and Verifying Plugins Dynamically</a></li>
<li class="level1"><a href="#debugging-plugins">Debugging Plugins</a></li>
</ul>
</div>
<h1 class="title">Deploying Plugins</h1>
<span class="subtitle"></span>
<!-- $$$deployment-plugins.html-description -->
<div class="descr"> <a name="details"></a>
<p>This document explains how to deploy plugin libraries that Qt or your application should load at runtime. If you use <a href="../qtcore/plugins-howto.html">static plugins</a>, then the plugin code is already part of your application executable, and no separate deployment steps are required.</p>
<a name="the-plugin-directory"></a>
<h2>The Plugin Directory</h2>
<p>When the application is run, Qt will first treat the application's executable directory as the base directory for searching for plugins. For example if the application is in <tt>C:\Program Files\MyApp</tt> and has a style plugin, Qt will look in <tt>C:\Program Files\MyApp\styles</tt>. (See <a href="../qtcore/qcoreapplication.html#applicationDirPath">QCoreApplication::applicationDirPath</a>() for how to find out where the application's executable is.) Qt will also look in the directory specified by QLibraryInfo::location(<a href="../qtcore/qlibraryinfo.html#LibraryLocation-enum">QLibraryInfo::PluginsPath</a>), which typically is located in <tt>QTDIR/plugins</tt> (where <tt>QTDIR</tt> is the directory where Qt is installed). If you want Qt to look in additional places you can add as many paths as you need with calls to <a href="../qtcore/qcoreapplication.html#addLibraryPath">QCoreApplication::addLibraryPath</a>(). And if you want to set your own path or paths you can use <a href="../qtcore/qcoreapplication.html#setLibraryPaths">QCoreApplication::setLibraryPaths</a>(). 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. Yet another possibility is to set the <tt>QT_PLUGIN_PATH</tt> environment variable before running the application. If set, Qt will look for plugins in the paths (separated by the system path separator) specified in the variable.</p>
<a name="loading-and-verifying-plugins-dynamically"></a>
<h2>Loading and Verifying Plugins Dynamically</h2>
<p>When loading plugins, the Qt library does some sanity checking to determine whether or not the plugin can be loaded and used. This provides the ability to have multiple versions and configurations of the Qt library installed side by side.</p>
<ul>
<li>Plugins linked with a Qt library that has a higher version number will not be loaded by a library with a lower version number.<br />
<p><b>Example:</b> Qt 5.0&#x2e;0 will <i>not</i> load a plugin built with Qt 5.0&#x2e;1&#x2e;</p>
</li>
<li>Plugins linked with a Qt library that has a lower major version number will not be loaded by a library with a higher major version number.<br />
<p><b>Example:</b> Qt 5.0&#x2e;1 will <i>not</i> load a plugin built with Qt 4.8&#x2e;2&#x2e;</p>
<br />
<p><b>Example:</b> Qt 5.1&#x2e;1 will load plugins built with Qt 5.1&#x2e;0 and Qt 5.0&#x2e;3&#x2e;</p>
</li>
</ul>
<p>When building plugins to extend an application, it is important to ensure that the plugin is configured in the same way as the application. This means that if the application was built in release mode, plugins should be built in release mode, too. Except for Unix operating systems, plugins build in a different mode will not get loaded by the plugin system.</p>
<p>If you configure Qt to be built in both debug and release modes, but only build applications in release mode, you need to ensure that your plugins are also built in release mode. By default, if a debug build of Qt is available, plugins will <i>only</i> be built in debug mode. To force the plugins to be built in release mode, add the following line to the plugin's project file:</p>
<pre class="cpp">CONFIG <span class="operator">+</span><span class="operator">=</span> release</pre>
<p>This will ensure that the plugin is compatible with the version of the library used in the application.</p>
<a name="debugging-plugins"></a>
<h2>Debugging Plugins</h2>
<p>There are a number of issues that may prevent correctly-written plugins from working with the applications that are designed to use them. Many of these are related to differences in the way that plugins and applications have been built, often arising from separate build systems and processes.</p>
<p>The following table contains descriptions of the common causes of problems developers experience when creating plugins:</p>
<table class="generic">
 <thead><tr class="qt-style"><th >Problem</th><th >Cause</th><th >Solution</th></tr></thead>
<tr valign="top" class="odd"><td >Plugins sliently fail to load even when opened directly by the application. <i>Qt Designer</i> shows the plugin libraries in its <b>Help|About Plugins</b> dialog, but no plugins are listed under each of them.</td><td >The application and its plugins are built in different modes.</td><td >Either share the same build information or build the plugins in both debug and release modes by appending the <tt>debug_and_release</tt> to the <a href="../qmake/qmake-variable-reference.html#qmake-variable-reference">CONFIG</a> variable in each of their project files.</td></tr>
</table>
<p>You can also use the <tt>QT_DEBUG_PLUGINS</tt> environment variable to obtain diagnostic information from Qt about each plugin it tries to load. Set this variable to a non-zero value in the environment from which your application is launched.</p>
</div>
<!-- @@@deployment-plugins.html -->
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
   subsidiaries. Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Digia, Qt and their respective logos are trademarks of Digia Plc     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>