/usr/share/qt5/doc/qtquickcontrols/qtquickcontrols-tableview-example.html is in qtquickcontrols5-doc-html 5.5.1-1ubuntu1.
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 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtquickcontrols-examples.qdoc -->
<title>Qt Quick Controls - Table View Example | Qt Quick Controls 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="qtquickcontrols-index.html">Qt Quick Controls</a></li>
<li>Qt Quick Controls - Table View Example</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="level1"><a href="#running-the-example">Running the Example</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt Quick Controls - Table View Example</h1>
<span class="subtitle"></span>
<!-- $$$tableview-description -->
<div class="descr"> <a name="details"></a>
<p class="centerAlign"><img src="images/qtquickcontrols-example-tableview.png" alt="" /></p><p>This example project demonstrates the usage of <a href="qml-qtquick-controls-tableview.html">TableView</a> from <a href="qtquickcontrols-index.html">Qt Quick Controls</a> - a control to display one or more columns of information from a data list model. The example includes a model that supports sorting and filtering.</p>
<p>The C++ class, SortFilterProxyModel, is registered as a QML type under the namespace, "<code>org.qtproject.example 1.0</code>".</p>
<p>The following snippets show how the type is registered under a namespace and later imported by <i>main.qml</i>.</p>
<p>QML type registration:</p>
<pre class="cpp"><span class="preprocessor">#include <QtQml/qqml.h></span>
<span class="operator">.</span><span class="operator">.</span><span class="operator">.</span>
qmlRegisterType<span class="operator"><</span>SortFilterProxyModel<span class="operator">></span>(<span class="string">"org.qtproject.example"</span><span class="operator">,</span> <span class="number">1</span><span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="string">"SortFilterProxyModel"</span>);
<span class="operator">.</span><span class="operator">.</span><span class="operator">.</span></pre>
<p>QML namespace import:</p>
<pre class="cpp">import org<span class="operator">.</span>qtproject<span class="operator">.</span>example <span class="number">1.0</span></pre>
<p>For more information about registering C++ classses as QML types, see <a href="../qtqml/qtqml-cppintegration-topic.html#defining-qml-types-from-c">Defining QML Types from C++</a>.</p>
<a name="running-the-example"></a>
<h2 id="running-the-example">Running the Example</h2>
<p>To run the example from Qt Creator, open the <b>Welcome</b> mode and select the example from <b>Examples</b>. For more information, visit Building and Running an Example.</p>
<p>Files:</p>
<ul>
<li><a href="qtquickcontrols-tableview-main-qml.html">tableview/main.qml</a></li>
<li><a href="qtquickcontrols-tableview-src-sortfilterproxymodel-cpp.html">tableview/src/sortfilterproxymodel.cpp</a></li>
<li><a href="qtquickcontrols-tableview-src-sortfilterproxymodel-h.html">tableview/src/sortfilterproxymodel.h</a></li>
<li><a href="qtquickcontrols-tableview-src-main-cpp.html">tableview/src/main.cpp</a></li>
<li><a href="qtquickcontrols-tableview-tableview-pro.html">tableview/tableview.pro</a></li>
<li><a href="qtquickcontrols-tableview-tableview-qrc.html">tableview/tableview.qrc</a></li>
</ul>
</div>
<!-- @@@tableview -->
</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>
|