/usr/share/qt5/doc/qtlocation/location-cpp-qml.html is in qtlocation5-doc-html 5.5.1-3ubuntu1.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- cpp-qml.qdoc -->
<title>Interfaces between C++ and QML Code in Qt Location | Qt Location 5.5</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.5</li>
<li><a href="qtlocation-index.html">Qt Location</a></li>
<li>Interfaces between C++ and QML Code in Qt Location</li>
<li id="buildversion">Qt 5.5.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level2"><a href="#category-qplacecategory">Category - QPlaceCategory</a></li>
<li class="level2"><a href="#contactdetail-qdeclarativecontactdetail">ContactDetail - QDeclarativeContactDetail</a></li>
<li class="level2"><a href="#place-qplace">Place - QPlace</a></li>
<li class="level2"><a href="#placeattribute-qplaceattribute">PlaceAttribute - QPlaceAttribute</a></li>
<li class="level2"><a href="#icon-qplaceicon">Icon - QPlaceIcon</a></li>
<li class="level2"><a href="#user-qplaceuser">User - QPlaceUser</a></li>
<li class="level2"><a href="#ratings-qplaceratings">Ratings - QPlaceRatings</a></li>
<li class="level2"><a href="#supplier-qplacesupplier">Supplier - QPlaceSupplier</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Interfaces between C++ and QML Code in Qt Location</h1>
<span class="subtitle"></span>
<!-- $$$location-cpp-qml.html-description -->
<div class="descr"> <a name="details"></a>
<a name="category-qplacecategory"></a>
<h3 >Category - QPlaceCategory</h3>
<p>The <a href="qml-qtlocation-category.html#category-prop">Category.category</a> property is used to provide an interface between C++ and QML code. First a pointer to a Category object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>category</code> property. The following gets the <a href="qplacecategory.html">QPlaceCategory</a> representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplacecategory.html">QPlaceCategory</a></span> category <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"category"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplacecategory.html">QPlaceCategory</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplacecategory.html">QPlaceCategory</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"category"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(category));</pre>
<a name="contactdetail-qdeclarativecontactdetail"></a>
<h3 >ContactDetail - QDeclarativeContactDetail</h3>
<p>The <a href="qml-qtlocation-contactdetail.html#contactDetail-prop">ContactDetail.contactDetail</a> property is used to provide an interface between C++ and QML code. First a pointer to a <a href="qml-qtlocation-contactdetail.html">ContactDetail</a> object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>contactDetail</code> property. The following gets the <a href="qplacecontactdetail.html">QPlaceContactDetail</a> representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplacecontactdetail.html">QPlaceContactDetail</a></span> contactDetail <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"contactDetail"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplacecontactdetail.html">QPlaceContactDetail</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplacecontactdetail.html">QPlaceContactDetail</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"contactDetail"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(contactDetail));</pre>
<a name="place-qplace"></a>
<h3 >Place - QPlace</h3>
<p>The <a href="qml-qtlocation-place.html#place-prop">Place.place</a> property is used to provide an interface between C++ and QML code. First a pointer to a Place object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>place</code> property. The following gets the <a href="qplace.html">QPlace</a> representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplace.html">QPlace</a></span> place <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"place"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplace.html">QPlace</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplace.html">QPlace</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"place"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(place));</pre>
<a name="placeattribute-qplaceattribute"></a>
<h3 >PlaceAttribute - QPlaceAttribute</h3>
<p>The <a href="qml-qtlocation-placeattribute.html#attribute-prop">PlaceAttribute.attribute</a> property is used to provide an interface between C++ and QML code. First a pointer to a <a href="qml-qtlocation-placeattribute.html">PlaceAttribute</a> object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>attribute</code> property. The following gets the <a href="qplaceattribute.html">QPlaceAttribute</a> representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplaceattribute.html">QPlaceAttribute</a></span> placeAttribute <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"attribute"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplaceattribute.html">QPlaceAttribute</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplaceattribute.html">QPlaceAttribute</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"attribute"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(placeAttribute));</pre>
<a name="icon-qplaceicon"></a>
<h3 >Icon - QPlaceIcon</h3>
<p>The <a href="qml-qtlocation-icon.html#icon-prop">Icon.icon</a> property is used to provide an interface between C++ and QML code. First a pointer to a Icon object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>icon</code> property. The following gets the <a href="qplaceicon.html">QPlaceIcon</a> representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplaceicon.html">QPlaceIcon</a></span> placeIcon <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"icon"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplaceicon.html">QPlaceIcon</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplaceicon.html">QPlaceIcon</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"icon"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(placeIcon));</pre>
<a name="user-qplaceuser"></a>
<h3 >User - QPlaceUser</h3>
<p>The <a href="qml-qtlocation-user.html#user-prop">User.user</a> property is used to provide an interface between C++ and QML code. First a pointer to a User object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>user</code> property. The following gets the <a href="qplaceuser.html">QPlaceUser</a> representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplaceuser.html">QPlaceUser</a></span> placeUser <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"user"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplaceuser.html">QPlaceUser</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplaceuser.html">QPlaceUser</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"user"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(placeUser));</pre>
<a name="ratings-qplaceratings"></a>
<h3 >Ratings - QPlaceRatings</h3>
<p>The <a href="qml-qtlocation-ratings.html#ratings-prop">Ratings.ratings</a> property is used to provide an interface between C++ and QML code. First a pointer to a Ratings object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>ratings</code> property. The following gets the QPlaceRating representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplaceratings.html">QPlaceRatings</a></span> placeRatings <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"ratings"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplaceratings.html">QPlaceRatings</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplaceratings.html">QPlaceRatings</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"ratings"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(placeRatings));</pre>
<a name="supplier-qplacesupplier"></a>
<h3 >Supplier - QPlaceSupplier</h3>
<p>The <a href="qml-qtlocation-supplier.html#supplier-prop">Supplier.supplier</a> property is used to provide an interface between C++ and QML code. First a pointer to a Supplier object must be obtained from C++, then use the <a href="../qtcore/qobject.html#property">property()</a> and <a href="../qtcore/qobject.html#setProperty">setProperty()</a> functions to get and set the <code>supplier</code> property. The following gets the <a href="qplacesupplier.html">QPlaceSupplier</a> representing this object from C++:</p>
<pre class="cpp"><span class="type"><a href="qplacesupplier.html">QPlaceSupplier</a></span> placeSupplier <span class="operator">=</span> qmlObject<span class="operator">-</span><span class="operator">></span>property(<span class="string">"supplier"</span>)<span class="operator">.</span>value<span class="operator"><</span><span class="type"><a href="qplacesupplier.html">QPlaceSupplier</a></span><span class="operator">></span>();</pre>
<p>The following sets the properties of this object based on a <a href="qplacesupplier.html">QPlaceSupplier</a> object from C++:</p>
<pre class="cpp">qmlObject<span class="operator">-</span><span class="operator">></span>setProperty(<span class="string">"supplier"</span><span class="operator">,</span> <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span><span class="operator">::</span>fromValue(placeSupplier));</pre>
</div>
<!-- @@@location-cpp-qml.html -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2015 The Qt Company Ltd.
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> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|