This file is indexed.

/usr/share/qt5/doc/qtuitools/quiloader.html is in qttools5-doc-html 5.2.1-8build1.

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
 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<?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" />
<!-- quiloader.cpp -->
  <title>QUiLoader Class | QtUiTools 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>Qt 5.2</li>
<li><a href="qtuitools-index.html">Qt UI Tools</a></li>
<li><a href="qtuitools-module.html">C++ Classes</a></li>
<li>QUiLoader</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="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QUiLoader Class</h1>
<!-- $$$QUiLoader-brief -->
<p>The QUiLoader class enables standalone applications to dynamically create user interfaces at run-time using the information stored in UI files or specified in plugin paths. <a href="#details">More...</a></p>
<!-- @@@QUiLoader -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include &lt;QUiLoader&gt;</span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += uitools</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="../qtcore/qobject.html">QObject</a>.</td></tr></table><ul>
<li><a href="quiloader-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#QUiLoader">QUiLoader</a></b>(QObject *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#dtor.QUiLoader">~QUiLoader</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#addPluginPath">addPluginPath</a></b>(const QString &amp;<i> path</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#availableLayouts">availableLayouts</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#availableWidgets">availableWidgets</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#clearPluginPaths">clearPluginPaths</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QAction * </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#createAction">createAction</a></b>(QObject *<i> parent</i> = 0, const QString &amp;<i> name</i> = QString())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QActionGroup * </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#createActionGroup">createActionGroup</a></b>(QObject *<i> parent</i> = 0, const QString &amp;<i> name</i> = QString())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QLayout * </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#createLayout">createLayout</a></b>(const QString &amp;<i> className</i>, QObject *<i> parent</i> = 0, const QString &amp;<i> name</i> = QString())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QWidget * </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#createWidget">createWidget</a></b>(const QString &amp;<i> className</i>, QWidget *<i> parent</i> = 0, const QString &amp;<i> name</i> = QString())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#errorString">errorString</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#isLanguageChangeEnabled">isLanguageChangeEnabled</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#load">load</a></b>(QIODevice *<i> device</i>, QWidget *<i> parentWidget</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#pluginPaths">pluginPaths</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#setLanguageChangeEnabled">setLanguageChangeEnabled</a></b>(bool<i> enabled</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#setWorkingDirectory">setWorkingDirectory</a></b>(const QDir &amp;<i> dir</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDir </td><td class="memItemRight bottomAlign"><b><a href="quiloader.html#workingDirectory">workingDirectory</a></b>() const</td></tr>
</table>
<ul>
<li class="fn">31 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
<li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QUiLoader-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QUiLoader class enables standalone applications to dynamically create user interfaces at run-time using the information stored in UI files or specified in plugin paths.</p>
<p>In addition, you can customize or create your own user interface by deriving your own loader class.</p>
<p>If you have a custom component or an application that embeds <i>Qt Designer</i>, you can also use the QFormBuilder class provided by the QtDesigner module to create user interfaces from UI files.</p>
<p>The QUiLoader class provides a collection of functions allowing you to create widgets based on the information stored in UI files (created with <i>Qt Designer</i>) or available in the specified plugin paths. The specified plugin paths can be retrieved using the <a href="quiloader.html#pluginPaths">pluginPaths</a>() function. Similarly, the contents of a UI file can be retrieved using the <a href="quiloader.html#load">load</a>() function. For example:</p>
<pre class="cpp">MyWidget<span class="operator">::</span>MyWidget(<span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> <span class="operator">*</span>parent)
    : <span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span>(parent)
{
    <span class="type">QUiLoader</span> loader;
    <span class="type"><a href="../qtcore/qfile.html">QFile</a></span> file(<span class="string">&quot;:/forms/myform.ui&quot;</span>);
    file<span class="operator">.</span>open(<span class="type"><a href="../qtcore/qfile.html">QFile</a></span><span class="operator">::</span>ReadOnly);
    <span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> <span class="operator">*</span>myWidget <span class="operator">=</span> loader<span class="operator">.</span>load(<span class="operator">&amp;</span>file<span class="operator">,</span> <span class="keyword">this</span>);
    file<span class="operator">.</span>close();

    <span class="type"><a href="../qtwidgets/qvboxlayout.html">QVBoxLayout</a></span> <span class="operator">*</span>layout <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="../qtwidgets/qvboxlayout.html">QVBoxLayout</a></span>;
    layout<span class="operator">-</span><span class="operator">&gt;</span>addWidget(myWidget);
    setLayout(layout);
}</pre>
<p>By including the user interface in the form's resources (<tt>myform.qrc</tt>), we ensure that it will be present at run-time:</p>
<pre class="cpp">&lt;!DOCTYPE RCC&gt;&lt;RCC version=&quot;1.0&quot;&gt;
&lt;qresource prefix=&quot;/forms&quot;&gt;
&lt;file&gt;myform.ui&lt;/file&gt;
&lt;/qresource&gt;
&lt;/RCC&gt;</pre>
<p>The <a href="quiloader.html#availableWidgets">availableWidgets</a>() function returns a <a href="../qtcore/qstringlist.html">QStringList</a> with the class names of the widgets available in the specified plugin paths. To create these widgets, simply use the <a href="quiloader.html#createWidget">createWidget</a>() function. For example:</p>
<pre class="cpp"><span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> <span class="operator">*</span>loadCustomWidget(<span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> <span class="operator">*</span>parent)
{
    <span class="type">QUiLoader</span> loader;
    <span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> <span class="operator">*</span>myWidget;

    <span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span> availableWidgets <span class="operator">=</span> loader<span class="operator">.</span>availableWidgets();

    <span class="keyword">if</span> (availableWidgets<span class="operator">.</span>contains(<span class="string">&quot;AnalogClock&quot;</span>))
        myWidget <span class="operator">=</span> loader<span class="operator">.</span>createWidget(<span class="string">&quot;AnalogClock&quot;</span><span class="operator">,</span> parent);

    <span class="keyword">return</span> myWidget;
}</pre>
<p>To make a custom widget available to the loader, you can use the <a href="quiloader.html#addPluginPath">addPluginPath</a>() function; to remove all available widgets, you can call the <a href="quiloader.html#clearPluginPaths">clearPluginPaths</a>() function.</p>
<p>The <a href="quiloader.html#createAction">createAction</a>(), <a href="quiloader.html#createActionGroup">createActionGroup</a>(), <a href="quiloader.html#createLayout">createLayout</a>(), and <a href="quiloader.html#createWidget">createWidget</a>() functions are used internally by the QUiLoader class whenever it has to create an action, action group, layout, or widget respectively. For that reason, you can subclass the QUiLoader class and reimplement these functions to intervene the process of constructing a user interface. For example, you might want to have a list of the actions created when loading a form or creating a custom widget.</p>
<p>For a complete example using the QUiLoader class, see the Calculator Builder Example.</p>
</div>
<p><b>See also </b><a href="qtuitools-index.html">Qt UI Tools</a> and QFormBuilder.</p>
<!-- @@@QUiLoader -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QUiLoader[overload1]$$$QUiLoaderQObject* -->
<h3 class="fn"><a name="QUiLoader"></a>QUiLoader::<span class="name">QUiLoader</span>(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *<i> parent</i> = 0)</h3>
<p>Creates a form loader with the given <i>parent</i>.</p>
<!-- @@@QUiLoader -->
<!-- $$$~QUiLoader[overload1]$$$~QUiLoader -->
<h3 class="fn"><a name="dtor.QUiLoader"></a>QUiLoader::<span class="name">~QUiLoader</span>()<tt> [virtual]</tt></h3>
<p>Destroys the loader.</p>
<!-- @@@~QUiLoader -->
<!-- $$$addPluginPath[overload1]$$$addPluginPathconstQString& -->
<h3 class="fn"><a name="addPluginPath"></a><span class="type">void</span> QUiLoader::<span class="name">addPluginPath</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i> path</i>)</h3>
<p>Adds the given <i>path</i> to the list of paths in which the loader will search when locating plugins.</p>
<p><b>See also </b><a href="quiloader.html#pluginPaths">pluginPaths</a>() and <a href="quiloader.html#clearPluginPaths">clearPluginPaths</a>().</p>
<!-- @@@addPluginPath -->
<!-- $$$availableLayouts[overload1]$$$availableLayouts -->
<h3 class="fn"><a name="availableLayouts"></a><span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span> QUiLoader::<span class="name">availableLayouts</span>() const</h3>
<p>Returns a list naming all available layouts that can be built using the <a href="quiloader.html#createLayout">createLayout</a>() function</p>
<p>This function was introduced in  Qt 4.5.</p>
<p><b>See also </b><a href="quiloader.html#createLayout">createLayout</a>().</p>
<!-- @@@availableLayouts -->
<!-- $$$availableWidgets[overload1]$$$availableWidgets -->
<h3 class="fn"><a name="availableWidgets"></a><span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span> QUiLoader::<span class="name">availableWidgets</span>() const</h3>
<p>Returns a list naming all available widgets that can be built using the <a href="quiloader.html#createWidget">createWidget</a>() function, i.e all the widgets specified within the given plugin paths.</p>
<p><b>See also </b><a href="quiloader.html#pluginPaths">pluginPaths</a>() and <a href="quiloader.html#createWidget">createWidget</a>().</p>
<!-- @@@availableWidgets -->
<!-- $$$clearPluginPaths[overload1]$$$clearPluginPaths -->
<h3 class="fn"><a name="clearPluginPaths"></a><span class="type">void</span> QUiLoader::<span class="name">clearPluginPaths</span>()</h3>
<p>Clears the list of paths in which the loader will search when locating plugins.</p>
<p><b>See also </b><a href="quiloader.html#addPluginPath">addPluginPath</a>() and <a href="quiloader.html#pluginPaths">pluginPaths</a>().</p>
<!-- @@@clearPluginPaths -->
<!-- $$$createAction[overload1]$$$createActionQObject*constQString& -->
<h3 class="fn"><a name="createAction"></a><span class="type"><a href="../qtwidgets/qaction.html">QAction</a></span> * QUiLoader::<span class="name">createAction</span>(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *<i> parent</i> = 0, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i> name</i> = QString())<tt> [virtual]</tt></h3>
<p>Creates a new action with the given <i>parent</i> and <i>name</i>.</p>
<p>The function is also used internally by the <a href="quiloader.html">QUiLoader</a> class whenever it creates a widget. Hence, you can subclass <a href="quiloader.html">QUiLoader</a> and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call <a href="quiloader.html">QUiLoader</a>'s version first.</p>
<p><b>See also </b><a href="quiloader.html#createActionGroup">createActionGroup</a>(), <a href="quiloader.html#createWidget">createWidget</a>(), and <a href="quiloader.html#load">load</a>().</p>
<!-- @@@createAction -->
<!-- $$$createActionGroup[overload1]$$$createActionGroupQObject*constQString& -->
<h3 class="fn"><a name="createActionGroup"></a><span class="type"><a href="../qtwidgets/qactiongroup.html">QActionGroup</a></span> * QUiLoader::<span class="name">createActionGroup</span>(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *<i> parent</i> = 0, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i> name</i> = QString())<tt> [virtual]</tt></h3>
<p>Creates a new action group with the given <i>parent</i> and <i>name</i>.</p>
<p>The function is also used internally by the <a href="quiloader.html">QUiLoader</a> class whenever it creates a widget. Hence, you can subclass <a href="quiloader.html">QUiLoader</a> and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call <a href="quiloader.html">QUiLoader</a>'s version first.</p>
<p><b>See also </b><a href="quiloader.html#createAction">createAction</a>(), <a href="quiloader.html#createWidget">createWidget</a>(), and <a href="quiloader.html#load">load</a>().</p>
<!-- @@@createActionGroup -->
<!-- $$$createLayout[overload1]$$$createLayoutconstQString&QObject*constQString& -->
<h3 class="fn"><a name="createLayout"></a><span class="type"><a href="../qtwidgets/qlayout.html">QLayout</a></span> * QUiLoader::<span class="name">createLayout</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i> className</i>, <span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *<i> parent</i> = 0, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i> name</i> = QString())<tt> [virtual]</tt></h3>
<p>Creates a new layout with the given <i>parent</i> and <i>name</i> using the class specified by <i>className</i>.</p>
<p>The function is also used internally by the <a href="quiloader.html">QUiLoader</a> class whenever it creates a widget. Hence, you can subclass <a href="quiloader.html">QUiLoader</a> and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call <a href="quiloader.html">QUiLoader</a>'s version first.</p>
<p><b>See also </b><a href="quiloader.html#createWidget">createWidget</a>() and <a href="quiloader.html#load">load</a>().</p>
<!-- @@@createLayout -->
<!-- $$$createWidget[overload1]$$$createWidgetconstQString&QWidget*constQString& -->
<h3 class="fn"><a name="createWidget"></a><span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> * QUiLoader::<span class="name">createWidget</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i> className</i>, <span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> *<i> parent</i> = 0, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i> name</i> = QString())<tt> [virtual]</tt></h3>
<p>Creates a new widget with the given <i>parent</i> and <i>name</i> using the class specified by <i>className</i>. You can use this function to create any of the widgets returned by the <a href="quiloader.html#availableWidgets">availableWidgets</a>() function.</p>
<p>The function is also used internally by the <a href="quiloader.html">QUiLoader</a> class whenever it creates a widget. Hence, you can subclass <a href="quiloader.html">QUiLoader</a> and reimplement this function to intervene process of constructing a user interface or widget. However, in your implementation, ensure that you call <a href="quiloader.html">QUiLoader</a>'s version first.</p>
<p><b>See also </b><a href="quiloader.html#availableWidgets">availableWidgets</a>() and <a href="quiloader.html#load">load</a>().</p>
<!-- @@@createWidget -->
<!-- $$$errorString[overload1]$$$errorString -->
<h3 class="fn"><a name="errorString"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QUiLoader::<span class="name">errorString</span>() const</h3>
<p>Returns a human-readable description of the last error occurred in <a href="quiloader.html#load">load</a>().</p>
<p>This function was introduced in  Qt 5.0.</p>
<p><b>See also </b><a href="quiloader.html#load">load</a>().</p>
<!-- @@@errorString -->
<!-- $$$isLanguageChangeEnabled[overload1]$$$isLanguageChangeEnabled -->
<h3 class="fn"><a name="isLanguageChangeEnabled"></a><span class="type">bool</span> QUiLoader::<span class="name">isLanguageChangeEnabled</span>() const</h3>
<p>Returns true if dynamic retranslation on language change is enabled; returns false otherwise.</p>
<p>This function was introduced in  Qt 4.5.</p>
<p><b>See also </b><a href="quiloader.html#setLanguageChangeEnabled">setLanguageChangeEnabled</a>().</p>
<!-- @@@isLanguageChangeEnabled -->
<!-- $$$load[overload1]$$$loadQIODevice*QWidget* -->
<h3 class="fn"><a name="load"></a><span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> * QUiLoader::<span class="name">load</span>(<span class="type"><a href="../qtcore/qiodevice.html">QIODevice</a></span> *<i> device</i>, <span class="type"><a href="../qtwidgets/qwidget.html">QWidget</a></span> *<i> parentWidget</i> = 0)</h3>
<p>Loads a form from the given <i>device</i> and creates a new widget with the given <i>parentWidget</i> to hold its contents.</p>
<p><b>See also </b><a href="quiloader.html#createWidget">createWidget</a>() and <a href="quiloader.html#errorString">errorString</a>().</p>
<!-- @@@load -->
<!-- $$$pluginPaths[overload1]$$$pluginPaths -->
<h3 class="fn"><a name="pluginPaths"></a><span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span> QUiLoader::<span class="name">pluginPaths</span>() const</h3>
<p>Returns a list naming the paths in which the loader will search when locating custom widget plugins.</p>
<p><b>See also </b><a href="quiloader.html#addPluginPath">addPluginPath</a>() and <a href="quiloader.html#clearPluginPaths">clearPluginPaths</a>().</p>
<!-- @@@pluginPaths -->
<!-- $$$setLanguageChangeEnabled[overload1]$$$setLanguageChangeEnabledbool -->
<h3 class="fn"><a name="setLanguageChangeEnabled"></a><span class="type">void</span> QUiLoader::<span class="name">setLanguageChangeEnabled</span>(<span class="type">bool</span><i> enabled</i>)</h3>
<p>If <i>enabled</i> is true, user interfaces loaded by this loader will automatically retranslate themselves upon receiving a language change event. Otherwise, the user interfaces will not be retranslated.</p>
<p>This function was introduced in  Qt 4.5.</p>
<p><b>See also </b><a href="quiloader.html#isLanguageChangeEnabled">isLanguageChangeEnabled</a>().</p>
<!-- @@@setLanguageChangeEnabled -->
<!-- $$$setWorkingDirectory[overload1]$$$setWorkingDirectoryconstQDir& -->
<h3 class="fn"><a name="setWorkingDirectory"></a><span class="type">void</span> QUiLoader::<span class="name">setWorkingDirectory</span>(const <span class="type"><a href="../qtcore/qdir.html">QDir</a></span> &amp;<i> dir</i>)</h3>
<p>Sets the working directory of the loader to <i>dir</i>. The loader will look for other resources, such as icons and resource files, in paths relative to this directory.</p>
<p><b>See also </b><a href="quiloader.html#workingDirectory">workingDirectory</a>().</p>
<!-- @@@setWorkingDirectory -->
<!-- $$$workingDirectory[overload1]$$$workingDirectory -->
<h3 class="fn"><a name="workingDirectory"></a><span class="type"><a href="../qtcore/qdir.html">QDir</a></span> QUiLoader::<span class="name">workingDirectory</span>() const</h3>
<p>Returns the working directory of the loader.</p>
<p><b>See also </b><a href="quiloader.html#setWorkingDirectory">setWorkingDirectory</a>().</p>
<!-- @@@workingDirectory -->
</div>
        </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>