/usr/share/qt5/doc/qtquickcontrols2/qtquickcontrols2-styles.html is in qtquickcontrols2-5-doc-html 5.9.5-0ubuntu2.
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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtquickcontrols2-styles.qdoc -->
<title>Styling Qt Quick Controls 2 | Qt Quick Controls 2 5.9</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.9</td><td ><a href="qtquickcontrols2-index.html">Qt Quick Controls 2</a></td><td >Styling Qt Quick Controls 2</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.5 Reference Documentation</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="#available-styles">Available Styles</a></li>
<li class="level2"><a href="#default-style">Default Style</a></li>
<li class="level2"><a href="#material-style">Material Style</a></li>
<li class="level2"><a href="#universal-style">Universal Style</a></li>
<li class="level1"><a href="#using-styles-in-qt-quick-controls-2">Using Styles in Qt Quick Controls 2</a></li>
<li class="level2"><a href="#using-qquickstyle-in-c">Using QQuickStyle in C++</a></li>
<li class="level2"><a href="#command-line-argument">Command line argument</a></li>
<li class="level2"><a href="#environment-variable">Environment variable</a></li>
<li class="level2"><a href="#configuration-file">Configuration file</a></li>
<li class="level1"><a href="#related-information">Related Information</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Styling Qt Quick Controls 2</h1>
<span class="subtitle"></span>
<!-- $$$qtquickcontrols2-styles.html-description -->
<div class="descr"> <a name="details"></a>
<a name="available-styles"></a>
<h2 id="available-styles">Available Styles</h2>
<p>Qt Quick Controls 2 comes with a selection of styles.</p>
<a name="default-style"></a>
<h3 >Default Style</h3>
<p class="centerAlign"><img src="images/qtquickcontrols2-default-thumbnail.png" alt="" /></p><p>The <a href="qtquickcontrols2-default.html">Default Style</a> is a simple and light-weight all-round style that offers the maximum performance for Qt Quick Controls 2.</p>
<a name="material-style"></a>
<h3 >Material Style</h3>
<p class="centerAlign"><img src="images/qtquickcontrols2-material-thumbnail.png" alt="" /></p><p>The <a href="qtquickcontrols2-material.html">Material Style</a> offers an appealing design based on the <a href="https://www.google.com/design/spec/material-design/introduction.html">Google Material Design Guidelines</a>, but requires more system resources than the Default style.</p>
<a name="universal-style"></a>
<h3 >Universal Style</h3>
<p class="centerAlign"><img src="images/qtquickcontrols2-universal-thumbnail.png" alt="" /></p><p>The <a href="qtquickcontrols2-universal.html">Universal Style</a> offers an appealing design based on the <a href="https://dev.windows.com/design">Microsoft Universal Design Guidelines</a>, but requires more system resources than the Default style.</p>
<a name="using-styles-in-qt-quick-controls-2"></a>
<h2 id="using-styles-in-qt-quick-controls-2">Using Styles in Qt Quick Controls 2</h2>
<p>In order to run an application with a specific style, either configure the style using <a href="qquickstyle.html">QQuickStyle</a> in C++, pass a command line argument, or set an environment variable. Alternatively, the preferred style and style-specific attributes can be specified in a configuration file.</p>
<p>The priority of these approaches follows the order they are listed below, from highest to lowest. That is, using <a href="qquickstyle.html">QQuickStyle</a> to set the style will always take priority over using the command line argument, for example.</p>
<a name="using-qquickstyle-in-c"></a>
<h3 >Using QQuickStyle in C++</h3>
<p><a href="qquickstyle.html">QQuickStyle</a> provides C++ API for configuring a specific style. The following example runs a Qt Quick Controls 2 application with the Material style:</p>
<pre class="cpp">
<span class="type"><a href="qquickstyle.html">QQuickStyle</a></span><span class="operator">::</span>setStyle(<span class="string">"Material"</span>);
</pre>
<p>See the detailed description of <a href="qquickstyle.html">QQuickStyle</a> for more details.</p>
<a name="command-line-argument"></a>
<h3 >Command line argument</h3>
<p>Passing a <code>-style</code> command line argument is the convenient way to test different styles. It takes precedence over the other methods listed below. The following example runs a Qt Quick Controls 2 application with the Material style:</p>
<pre class="cpp">
<span class="operator">.</span><span class="operator">/</span>app <span class="operator">-</span>style material
</pre>
<a name="environment-variable"></a>
<h3 >Environment variable</h3>
<p>Setting the <code>QT_QUICK_CONTROLS_STYLE</code> environment variable can be used to set a system-wide style preference. It takes precedence over the configuration file mentioned below. The following example runs a Qt Quick Controls 2 application with the Universal style:</p>
<pre class="cpp">
QT_QUICK_CONTROLS_STYLE<span class="operator">=</span>universal <span class="operator">.</span><span class="operator">/</span>app
</pre>
<p>See <a href="qtquickcontrols2-environment.html">Supported Environment Variables in Qt Quick Controls 2</a> for the full list of supported environment variables.</p>
<a name="configuration-file"></a>
<h3 >Configuration file</h3>
<p>Qt Quick Controls 2 support a special configuration file, <code>:/qtquickcontrols2.conf</code>, that is built into an application's resources.</p>
<p>The configuration file can specify the preferred style (may be overridden by either of the methods described earlier) and certain style-specific attributes. The following example specifies that the preferred style is the Material style.</p>
<pre class="cpp">
<span class="operator">[</span>Controls<span class="operator">]</span>
Style<span class="operator">=</span>Material
</pre>
<p>See <a href="qtquickcontrols2-configuration.html">Qt Quick Controls 2 Configuration File</a> for more details about the configuration file.</p>
<a name="related-information"></a>
<h2 id="related-information">Related Information</h2>
<ul>
<li><a href="qtquickcontrols2-default.html">Default Style</a></li>
<li><a href="qtquickcontrols2-material.html">Material Style</a></li>
<li><a href="qtquickcontrols2-universal.html">Universal Style</a></li>
<li><a href="qtquickcontrols2-customize.html">Customizing Qt Quick Controls 2</a></li>
<li><a href="qtquickcontrols2-fileselectors.html">Using File Selectors with Qt Quick Controls 2</a></li>
<li><a href="qtquickcontrols2-deployment.html">Deploying Qt Quick Controls 2 Applications</a></li>
<li><a href="qtquickcontrols2-configuration.html">Qt Quick Controls 2 Configuration File</a></li>
<li><a href="qtquickcontrols2-environment.html">Supported Environment Variables in Qt Quick Controls 2</a></li>
</ul>
</div>
<!-- @@@qtquickcontrols2-styles.html -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2017 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>
|