Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 814a2b4c48f3ef6444b2ff5bf854d05a > files > 290

qtconnectivity5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdeclarativendeftextrecord.cpp -->
  <title>NdefTextRecord QML Type | Qt NFC 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtnfc-index.html">Qt NFC</a></td><td ><a href="qtnfc-qmlmodule.html">QML Types</a></td><td >NdefTextRecord QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtnfc-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </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="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">NdefTextRecord QML Type</h1>
<span class="subtitle"></span>
<!-- $$$NdefTextRecord-brief -->
<p>Represents an NFC RTD-Text NDEF record. <a href="#details">More...</a></p>
<!-- @@@NdefTextRecord -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtNfc 5.12</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.2</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qtnfc-ndefrecord.html">NdefRecord</a></p>
</td></tr></table></div><ul>
<li><a href="qml-qtnfc-ndeftextrecord-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtnfc-ndeftextrecord.html#locale-prop">locale</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtnfc-ndeftextrecord.html#localeMatch-prop">localeMatch</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtnfc-ndeftextrecord.html#text-prop">text</a></b></b> : string</li>
</ul>
<!-- $$$NdefTextRecord-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>The <a href="qml-qtnfc-ndeftextrecord.html">NdefTextRecord</a> type contains a localized piece of text that can be display to the user. An NDEF message may contain many text records for different locales, it is up to the application to select the most appropriate one to display to the user. The <a href="qml-qtnfc-ndeftextrecord.html#localeMatch-prop">localeMatch</a> property can be used to determine if the text record has been matched.</p>
<p><b>See also </b><a href="qndefnfctextrecord.html">QNdefNfcTextRecord</a>.</p>
<!-- @@@NdefTextRecord -->
<h2>Property Documentation</h2>
<!-- $$$locale -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="locale-prop">
<td class="tblQmlPropNode"><p>
<a name="locale-prop"></a><span class="name">locale</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the locale that this text record is for.</p>
</div></div><!-- @@@locale -->
<br/>
<!-- $$$localeMatch -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="localeMatch-prop">
<td class="tblQmlPropNode"><p>
<a name="localeMatch-prop"></a><span class="name">localeMatch</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds an enum describing how closely the locale of the text record matches the applications current locale. The application should display only the text record that most closely matches the applications current locale.</p>
<div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Value</th><th >Description</th></tr></thead>
<tr valign="top" class="odd"><td >LocaleMatchedNone</td><td >The text record does not match at all.</td></tr>
<tr valign="top" class="even"><td >LocaleMatchedEnglish</td><td >The language of the text record is English and the language of application's current locale is <b>not</b> English. The English language text should be displayed if there is not a more appropriate match.</td></tr>
<tr valign="top" class="odd"><td >LocaleMatchedLanguage</td><td >The language of the text record and the language of the applications's current locale are the same.</td></tr>
<tr valign="top" class="even"><td >LocaleMatchedLanguageAndCountry</td><td >The language and country of the text record matches that of the applicatin's current locale.</td></tr>
</table></div>
</div></div><!-- @@@localeMatch -->
<br/>
<!-- $$$text -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="text-prop">
<td class="tblQmlPropNode"><p>
<a name="text-prop"></a><span class="name">text</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This property holds the text which should be displayed when the current locale matches <a href="qml-qtnfc-ndeftextrecord.html#locale-prop">locale</a>.</p>
</div></div><!-- @@@text -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 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>