/usr/share/qt5/doc/qtlocation/location-cpp-qml.html is in qtlocation5-doc-html 5.2.1-1ubuntu2.
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 | <?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" />
<!-- cpp-qml.qdoc -->
<title>Interfaces between C++ and QML Code in Qt Positioning | QtLocation 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="qtlocation-index.html">Qt Location</a></li>
<li>Interfaces between C++ and QML Code in Qt Positioning</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="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>
<h1 class="title">Interfaces between C++ and QML Code in Qt Positioning</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>
<a name="category"></a><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 property() and setProperty() functions to get and set the <tt>category</tt> 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">QVariant</span><span class="operator">::</span>fromValue(category));</pre>
<a name="contactdetail-qdeclarativecontactdetail"></a>
<h3>ContactDetail - QDeclarativeContactDetail</h3>
<a name="contact-detail"></a><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 property() and setProperty() functions to get and set the <tt>contactDetail</tt> 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">QVariant</span><span class="operator">::</span>fromValue(contactDetail));</pre>
<a name="place-qplace"></a>
<h3>Place - QPlace</h3>
<a name="place"></a><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 property() and setProperty() functions to get and set the <tt>place</tt> 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">QVariant</span><span class="operator">::</span>fromValue(place));</pre>
<a name="placeattribute-qplaceattribute"></a>
<h3>PlaceAttribute - QPlaceAttribute</h3>
<a name="placeattribute"></a><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 property() and setProperty() functions to get and set the <tt>attribute</tt> 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">QVariant</span><span class="operator">::</span>fromValue(placeAttribute));</pre>
<a name="icon-qplaceicon"></a>
<h3>Icon - QPlaceIcon</h3>
<a name="placeicon"></a><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 property() and setProperty() functions to get and set the <tt>icon</tt> 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">QVariant</span><span class="operator">::</span>fromValue(placeIcon));</pre>
<a name="user-qplaceuser"></a>
<h3>User - QPlaceUser</h3>
<a name="placeuser"></a><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 property() and setProperty() functions to get and set the <tt>user</tt> 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">QVariant</span><span class="operator">::</span>fromValue(placeUser));</pre>
<a name="ratings-qplaceratings"></a>
<h3>Ratings - QPlaceRatings</h3>
<a name="placeratings"></a><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 property() and setProperty() functions to get and set the <tt>ratings</tt> 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">QVariant</span><span class="operator">::</span>fromValue(placeRatings));</pre>
<a name="supplier-qplacesupplier"></a>
<h3>Supplier - QPlaceSupplier</h3>
<a name="placesupplier"></a><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 property() and setProperty() functions to get and set the <tt>supplier</tt> 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">QVariant</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> 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>
|