Revision control

Copy as Markdown

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- namesaketest.qdoc -->
<meta name="description" content="Not a singleton, despite sharing its name with the C++ class NamesakeObject.">
<meta name="keywords" content="qmltype">
<title>NamesakeObject QML Type | QmlSingletonTest</title>
</head>
<body>
<ul class="breadcrumb">
<li>NamesakeObject</li>
</ul>
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">NamesakeObject QML Type</h1>
<!-- $$$NamesakeObject-brief -->
<p>Not a singleton, despite sharing its name with the C++ class NamesakeObject. <a href="#details">More...</a></p>
<!-- @@@NamesakeObject -->
<div class="table"><table class="alignedsummary requisites" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> <code translate="no">import Test</code></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> In C++:</td><td class="memItemRight bottomAlign"> <a href="plainobject.html" translate="no">PlainObject</a></td></tr>
</table></div>
<ul>
<li><a href="qml-test-namesakeobject-members.html">List of all members, including inherited members</a></li>
</ul>
<!-- $$$NamesakeObject-description -->
<h2 id="details">Detailed Description</h2>
<p>The QML type name and C++ class names live in separate namespaces, so a QML type may share its name with an unrelated C++ class. The singleton attribute must be taken from the <span translate="no">\nativetype</span> (<a href="plainobject.html" translate="no">PlainObject</a>, which is not a singleton), never from the same-named class NamesakeObject, which is one.</p>
<!-- @@@NamesakeObject -->
</body>
</html>