/usr/share/qt5/doc/qtdoc/topics-scripting.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 | <?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" />
<!-- scripting.qdoc -->
<title>Scripting | 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>Scripting</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="#qt-script">Qt Script</a></li>
<li class="level1"><a href="#js-api">JS API</a></li>
<li class="level1"><a href="#qml">QML</a></li>
</ul>
</div>
<h1 class="title">Scripting</h1>
<span class="subtitle"></span>
<!-- $$$topics-scripting.html-description -->
<div class="descr"> <a name="details"></a>
<p>Qt has three main ways to help make an application scriptable. All of them allow easy integration of the <a href="../qtscript/ecmascript.html">ECMAScript</a> (more widely known as JavaScript) language into the application. Depending on how deep the integration should be, one of these APIs can be used:</p>
<a name="qt-script"></a>
<h2>Qt Script</h2>
<p><a href="../qtscript/qtscript-index.html">Qt Script</a> is a separate module, designed with scripting applications in mind. It has a mature and rich API that permits a really deep integration of scripting functionality. It allows evaluating and debugging of scripts, and advanced use of objects and functions. It also gives access to a really low level <a href="../qtscript/ecmascript.html">ECMAScript</a> engine API. Full documentation about using <a href="../qtscript/qtscript-index.html">Qt Script</a> to make an application scriptable can be found <a href="../qtqml/qtjavascript.html">here</a>.</p>
<a name="js-api"></a>
<h2>JS API</h2>
<p>This is a simple API, very similar to <a href="../qtscript/qtscript-index.html">Qt Script</a>, but limited to basic functionality. The main classes are <a href="../qtqml/qjsengine.html">QJSEngine</a> and <a href="../qtqml/qjsvalue.html">QJSValue</a>, which can be used to embed pure <a href="../qtscript/ecmascript.html">ECMAScript</a> functionality like evaluating scripts and calling functions.</p>
<a name="qml"></a>
<h2>QML</h2>
<p><a href="../qtqml/qtqml-index.html">QML</a> exposes a modified <a href="../qtscript/ecmascript.html">ECMAScript</a> environment. It is designed to mix well with the JavaScript API mentioned earlier. QML may be used without <a href="../qtquick/qtquick-index.html">Qt Quick</a> components, which may be useful for server side scripting. With QML it is possible to mix pure <a href="../qtscript/ecmascript.html">ECMAScript</a> and declarative components (<a href="qtquick-usecase-integratingjs.html">Use Case - Integrating JavaScript in QML</a>).</p>
<p>All of these three scripting solutions seamlessly inter-operate with <a href="../qtcore/metaobjects.html">the Meta-Object System</a>, which means that all <a href="../qtcore/signalsandslots.html">signals and slots</a> and <a href="../qtcore/properties.html">properties</a> of a <a href="../qtcore/qobject.html">QObject</a> instance are accessible in an <a href="../qtscript/ecmascript.html">ECMAScript</a> environment.</p>
</div>
<!-- @@@topics-scripting.html -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</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>
|