This file is indexed.

/usr/share/qt5/doc/qtqml/qqmlapplicationengine.html is in qtdeclarative5-doc-html 5.2.1-3ubuntu15.

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
<?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" />
<!-- qqmlapplicationengine.cpp -->
  <title>QQmlApplicationEngine Class | QtQml 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="qtqml-index.html">Qt QML</a></li>
<li><a href="qtqml-module.html">C++ Classes</a></li>
<li>QQmlApplicationEngine</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="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QQmlApplicationEngine Class</h1>
<!-- $$$QQmlApplicationEngine-brief -->
<p>QQmlApplicationEngine provides a convenient way to load an application from a single QML file. <a href="#details">More...</a></p>
<!-- @@@QQmlApplicationEngine -->
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> </b><tt><span class="preprocessor">#include &lt;QQmlApplicationEngine&gt;</span>
</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> <tt>QT += qml</tt></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.1</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qqmlengine.html">QQmlEngine</a>.</td></tr></table><ul>
<li><a href="qqmlapplicationengine-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="qqmlapplicationengine.html#QQmlApplicationEngine">QQmlApplicationEngine</a></b>(QObject *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#QQmlApplicationEngine-2">QQmlApplicationEngine</a></b>(const QUrl &amp;<i> url</i>, QObject *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#QQmlApplicationEngine-3">QQmlApplicationEngine</a></b>(const QString &amp;<i> filePath</i>, QObject *<i> parent</i> = 0)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#dtor.QQmlApplicationEngine">~QQmlApplicationEngine</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QObject *&gt; </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#rootObjects">rootObjects</a></b>()</td></tr>
</table>
<ul>
<li class="fn">25 public functions inherited from <a href="qqmlengine.html#public-functions">QQmlEngine</a></li>
<li class="fn">8 public functions inherited from <a href="qjsengine.html#public-functions">QJSEngine</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#load">load</a></b>(const QUrl &amp;<i> url</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#load-2">load</a></b>(const QString &amp;<i> filePath</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#loadData">loadData</a></b>(const QByteArray &amp;<i> data</i>, const QUrl &amp;<i> url</i> = QUrl())</td></tr>
</table>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qqmlapplicationengine.html#objectCreated">objectCreated</a></b>(QObject *<i> object</i>, const QUrl &amp;<i> url</i>)</td></tr>
</table>
<ul>
<li class="fn">2 signals inherited from <a href="qqmlengine.html#signals">QQmlEngine</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qqmlengine.html#properties">QQmlEngine</a></li>
<li class="fn">4 static public members inherited from <a href="qqmlengine.html#static-public-members">QQmlEngine</a></li>
<li class="fn">1 protected function inherited from <a href="qqmlengine.html#protected-functions">QQmlEngine</a></li>
</ul>
<a name="details"></a>
<!-- $$$QQmlApplicationEngine-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>QQmlApplicationEngine provides a convenient way to load an application from a single QML file.</p>
<p>This class combines a <a href="qqmlengine.html">QQmlEngine</a> and <a href="qqmlcomponent.html">QQmlComponent</a> to provide a convenient way to load a single QML file. It also exposes some central application functionality to QML, which a C++/QML hybrid application would normally control from C++.</p>
<p>It can be used like so:</p>
<pre class="cpp"><span class="preprocessor">#include &lt;QGuiApplication&gt;</span>
<span class="preprocessor">#include &lt;QQmlApplicationEngine&gt;</span>

<span class="type">int</span> main(<span class="type">int</span> argc<span class="operator">,</span> <span class="type">char</span> <span class="operator">*</span>argv<span class="operator">[</span><span class="operator">]</span>)
{
    <span class="type">QGuiApplication</span> app(argc<span class="operator">,</span> argv);
    <span class="type">QQmlApplicationEngine</span> engine(<span class="string">&quot;main.qml&quot;</span>);
    <span class="keyword">return</span> app<span class="operator">.</span>exec();
}</pre>
<p>You can also use QCoreApplication with QQmlApplicationEngine, if you are not using any QML modules which require a QGuiApplication (such as <tt>QtQuick</tt>).</p>
<p>List of configuration changes from a default <a href="qqmlengine.html">QQmlEngine</a>:</p>
<ul>
<li>Connecting Qt.<a href="qqmlengine.html#quit">quit</a>() to QCoreApplication::quit()</li>
<li>Automatically loads translation files from an i18n directory adjacent to the main QML file.</li>
<li>Automatically sets an incubuation controller if the scene contains a QQuickWindow.</li>
<li>Automatically sets a <tt>QQmlFileSelector</tt> as the url interceptor, applying file selectors to all QML files and assets.</li>
</ul>
<p>The engine behavior can be further tweaked by using the inherited methods from <a href="qqmlengine.html">QQmlEngine</a>.</p>
</div>
<!-- @@@QQmlApplicationEngine -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QQmlApplicationEngine[overload1]$$$QQmlApplicationEngineQObject* -->
<h3 class="fn"><a name="QQmlApplicationEngine"></a>QQmlApplicationEngine::<span class="name">QQmlApplicationEngine</span>(<span class="type">QObject</span> *<i> parent</i> = 0)</h3>
<p>Create a new <a href="qqmlapplicationengine.html">QQmlApplicationEngine</a> with the given <i>parent</i>. You will have to call <a href="qqmlapplicationengine.html#load">load</a>() later in order to load a QML file.</p>
<!-- @@@QQmlApplicationEngine -->
<!-- $$$QQmlApplicationEngine$$$QQmlApplicationEngineconstQUrl&QObject* -->
<h3 class="fn"><a name="QQmlApplicationEngine-2"></a>QQmlApplicationEngine::<span class="name">QQmlApplicationEngine</span>(const <span class="type">QUrl</span> &amp;<i> url</i>, <span class="type">QObject</span> *<i> parent</i> = 0)</h3>
<p>Create a new <a href="qqmlapplicationengine.html">QQmlApplicationEngine</a> and loads the QML file at the given <i>url</i>. This is provided as a convenience, and is the same as using the empty constructor and calling load afterwards.</p>
<!-- @@@QQmlApplicationEngine -->
<!-- $$$QQmlApplicationEngine$$$QQmlApplicationEngineconstQString&QObject* -->
<h3 class="fn"><a name="QQmlApplicationEngine-3"></a>QQmlApplicationEngine::<span class="name">QQmlApplicationEngine</span>(const <span class="type">QString</span> &amp;<i> filePath</i>, <span class="type">QObject</span> *<i> parent</i> = 0)</h3>
<p>Create a new <a href="qqmlapplicationengine.html">QQmlApplicationEngine</a> and loads the QML file at the given <i>filePath</i>, which must be a local file path. If a relative path is given then it will be interpreted as relative to the working directory of the application.</p>
<p>This is provided as a convenience, and is the same as using the empty constructor and calling load afterwards.</p>
<!-- @@@QQmlApplicationEngine -->
<!-- $$$~QQmlApplicationEngine[overload1]$$$~QQmlApplicationEngine -->
<h3 class="fn"><a name="dtor.QQmlApplicationEngine"></a>QQmlApplicationEngine::<span class="name">~QQmlApplicationEngine</span>()</h3>
<p>Destroys the <a href="qqmlapplicationengine.html">QQmlApplicationEngine</a> and all QML objects it loaded.</p>
<!-- @@@~QQmlApplicationEngine -->
<!-- $$$load[overload1]$$$loadconstQUrl& -->
<h3 class="fn"><a name="load"></a><span class="type">void</span> QQmlApplicationEngine::<span class="name">load</span>(const <span class="type">QUrl</span> &amp;<i> url</i>)<tt> [slot]</tt></h3>
<p>Loads the root QML file located at <i>url</i>. The object tree defined by the file is created immediately for local file urls. Remote urls are loaded asynchronously, listen to the objectCreated signal to determine when the object tree is ready.</p>
<p>If an error occurs, error messages are printed with qWarning.</p>
<!-- @@@load -->
<!-- $$$load$$$loadconstQString& -->
<h3 class="fn"><a name="load-2"></a><span class="type">void</span> QQmlApplicationEngine::<span class="name">load</span>(const <span class="type">QString</span> &amp;<i> filePath</i>)<tt> [slot]</tt></h3>
<p>Loads the root QML file located at <i>filePath</i>. <i>filePath</i> must be a path to a local file. If <i>filePath</i> is a relative path, it is taken as relative to the application's working directory. The object tree defined by the file is instantiated immediately.</p>
<p>If an error occurs, error messages are printed with qWarning.</p>
<!-- @@@load -->
<!-- $$$loadData[overload1]$$$loadDataconstQByteArray&constQUrl& -->
<h3 class="fn"><a name="loadData"></a><span class="type">void</span> QQmlApplicationEngine::<span class="name">loadData</span>(const <span class="type">QByteArray</span> &amp;<i> data</i>, const <span class="type">QUrl</span> &amp;<i> url</i> = QUrl())<tt> [slot]</tt></h3>
<p>Loads the QML given in <i>data</i>. The object tree defined by <i>data</i> is instantiated immediately.</p>
<p>If a <i>url</i> is specified it is used as the base url of the component. This affects relative paths within the data and error messages.</p>
<p>If an error occurs, error messages are printed with qWarning.</p>
<!-- @@@loadData -->
<!-- $$$objectCreated[overload1]$$$objectCreatedQObject*constQUrl& -->
<h3 class="fn"><a name="objectCreated"></a><span class="type">void</span> QQmlApplicationEngine::<span class="name">objectCreated</span>(<span class="type">QObject</span> *<i> object</i>, const <span class="type">QUrl</span> &amp;<i> url</i>)<tt> [signal]</tt></h3>
<p>This signal is emitted when an object finishes loading. If loading was successful, <i>object</i> contains a pointer to the loaded object. Otherwise the pointer is NULL. The <i>url</i> loaded is also provided, note that if a QString file path was initially passed to the <a href="qqmlapplicationengine.html">QQmlApplicationEngine</a>, this url will be the equivalent of QUrl::fromLocalFile(filePath).</p>
<!-- @@@objectCreated -->
<!-- $$$rootObjects[overload1]$$$rootObjects -->
<h3 class="fn"><a name="rootObjects"></a><span class="type">QList</span>&lt;<span class="type">QObject</span> *&gt; QQmlApplicationEngine::<span class="name">rootObjects</span>()</h3>
<p>Returns a list of all the root objects instantiated by the <a href="qqmlapplicationengine.html">QQmlApplicationEngine</a>. This will only contain objects loaded via <a href="qqmlapplicationengine.html#load">load</a>() or a convenience constructor.</p>
<!-- @@@rootObjects -->
</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>