/usr/share/qt5/doc/qtquickcontrols2/qquickstyle.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 139 140 141 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickstyle.cpp -->
<title>QQuickStyle Class | 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 ><a href="qtquickcontrols2-module.html">C++ Classes</a></td><td >QQuickStyle</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="#static-public-members">Static Public Members</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">QQuickStyle Class</h1>
<!-- $$$QQuickStyle-brief -->
<p>The <a href="qquickstyle.html">QQuickStyle</a> class allows configuring the application style. <a href="#details">More...</a></p>
<!-- @@@QQuickStyle -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QQuickStyle></span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.7</td></tr></table></div><ul>
<li><a href="qquickstyle-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qquickstyle.html#availableStyles">availableStyles</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qquickstyle.html#name">name</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qquickstyle.html#path">path</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickstyle.html#setFallbackStyle">setFallbackStyle</a></b>(const QString &<i>style</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qquickstyle.html#setStyle">setStyle</a></b>(const QString &<i>style</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QQuickStyle-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qquickstyle.html">QQuickStyle</a> class allows configuring the application style.</p>
<p><a href="qquickstyle.html">QQuickStyle</a> provides API for querying and configuring the application <a href="qtquickcontrols2-styles.html">styles</a> of Qt Quick Controls 2.</p>
<pre class="cpp">
<span class="preprocessor">#include <QGuiApplication></span>
<span class="preprocessor">#include <QQmlApplicationEngine></span>
<span class="preprocessor">#include <QQuickStyle></span>
<span class="type">int</span> main(<span class="type">int</span> argc<span class="operator">,</span> <span class="type">char</span> <span class="operator">*</span>argv<span class="operator">[</span><span class="operator">]</span>)
{
<span class="type"><a href="../qtgui/qguiapplication.html">QGuiApplication</a></span><span class="operator">::</span>setAttribute(<span class="type"><a href="../qtcore/qt.html">Qt</a></span><span class="operator">::</span>AA_EnableHighDpiScaling);
<span class="type"><a href="../qtgui/qguiapplication.html">QGuiApplication</a></span> app(argc<span class="operator">,</span> argv);
<span class="type"><a href="qquickstyle.html">QQuickStyle</a></span><span class="operator">::</span>setStyle(<span class="string">"Material"</span>);
<span class="type"><a href="../qtqml/qqmlapplicationengine.html">QQmlApplicationEngine</a></span> engine;
engine<span class="operator">.</span>load(<span class="type"><a href="../qtcore/qurl.html">QUrl</a></span>(<span class="string">"qrc:/main.qml"</span>));
<span class="keyword">return</span> app<span class="operator">.</span>exec();
}
</pre>
<p><b>Note: </b>The style must be configured <b>before</b> loading QML that imports Qt Quick Controls 2. It is not possible to change the style after the QML types have been registered.</p><p>The style can also be specified as a path to a custom style, such as <code>":/mystyle"</code>. See <a href="qtquickcontrols2-customize.html#creating-a-custom-style">Creating a Custom Style</a> for more details about building custom styles. Custom styles do not need to implement all controls. By default, the styling system uses the <a href="qtquickcontrols2-default.html">Default style</a> as a fallback for controls that a custom style does not provide. It is possible to specify a different fallback style to customize or extend one of the built-in styles.</p>
<pre class="cpp">
<span class="type"><a href="qquickstyle.html">QQuickStyle</a></span><span class="operator">::</span>setStyle(<span class="string">":/mystyle"</span>);
<span class="type"><a href="qquickstyle.html">QQuickStyle</a></span><span class="operator">::</span>setFallbackStyle(<span class="string">"Material"</span>);
</pre>
</div>
<p><b>See also </b><a href="qtquickcontrols2-styles.html">Styling Qt Quick Controls 2</a>.</p>
<!-- @@@QQuickStyle -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$availableStyles[overload1]$$$availableStyles -->
<h3 class="fn" id="availableStyles"><a name="availableStyles"></a><code>[static] </code><span class="type"><a href="../qtcore/qstringlist.html">QStringList</a></span> QQuickStyle::<span class="name">availableStyles</span>()</h3>
<p>Returns the names of the available built-in styles.</p>
<p><b>Note: </b>The method must be called <b>after</b> creating an instance of <a href="../qtgui/qguiapplication.html">QGuiApplication</a>.</p><p>This function was introduced in Qt 5.9.</p>
<!-- @@@availableStyles -->
<!-- $$$name[overload1]$$$name -->
<h3 class="fn" id="name"><a name="name"></a><code>[static] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QQuickStyle::<span class="name">name</span>()</h3>
<p>Returns the name of the application style.</p>
<p><b>Note: </b>The application style can be specified by passing a <code>-style</code> command line argument. Therefore <code>name()</code> may not return a fully resolved value if called before constructing a <a href="../qtgui/qguiapplication.html">QGuiApplication</a>.</p><!-- @@@name -->
<!-- $$$path[overload1]$$$path -->
<h3 class="fn" id="path"><a name="path"></a><code>[static] </code><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QQuickStyle::<span class="name">path</span>()</h3>
<p>Returns the path of an overridden application style, or an empty string if the style is one of the built-in Qt Quick Controls 2 styles.</p>
<p><b>Note: </b>The application style can be specified by passing a <code>-style</code> command line argument. Therefore <code>path()</code> may not return a fully resolved value if called before constructing a <a href="../qtgui/qguiapplication.html">QGuiApplication</a>.</p><!-- @@@path -->
<!-- $$$setFallbackStyle[overload1]$$$setFallbackStyleconstQString& -->
<h3 class="fn" id="setFallbackStyle"><a name="setFallbackStyle"></a><code>[static] </code><span class="type">void</span> QQuickStyle::<span class="name">setFallbackStyle</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>style</i>)</h3>
<p>Sets the application fallback style to <i>style</i>.</p>
<p><b>Note: </b>The fallback style must be the name of one of the built-in Qt Quick Controls 2 styles, e.g. "Material".</p><p><b>Note: </b>The style must be configured <b>before</b> loading QML that imports Qt Quick Controls 2. It is not possible to change the style after the QML types have been registered.</p><p>The fallback style can be also specified by setting the <code>QT_QUICK_CONTROLS_FALLBACK_STYLE</code> <a href="qtquickcontrols2-environment.html">environment variable</a>.</p>
<p>This function was introduced in Qt 5.8.</p>
<p><b>See also </b><a href="qquickstyle.html#setStyle">setStyle</a>() and <a href="qtquickcontrols2-styles.html#using-styles-in-qt-quick-controls-2">Using Styles in Qt Quick Controls 2</a>.</p>
<!-- @@@setFallbackStyle -->
<!-- $$$setStyle[overload1]$$$setStyleconstQString& -->
<h3 class="fn" id="setStyle"><a name="setStyle"></a><code>[static] </code><span class="type">void</span> QQuickStyle::<span class="name">setStyle</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &<i>style</i>)</h3>
<p>Sets the application style to <i>style</i>.</p>
<p><b>Note: </b>The style must be configured <b>before</b> loading QML that imports Qt Quick Controls 2. It is not possible to change the style after the QML types have been registered.</p><p><b>See also </b><a href="qquickstyle.html#setFallbackStyle">setFallbackStyle</a>() and <a href="qtquickcontrols2-styles.html#using-styles-in-qt-quick-controls-2">Using Styles in Qt Quick Controls 2</a>.</p>
<!-- @@@setStyle -->
</div>
</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>
|