<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Where to find the qtstylesheet grammar rules?]]></title><description><![CDATA[<p dir="auto">Now I just figured out what does the classes mean from the official api.<br />
But somewhere the code likes below:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/bafa0e8d-ca95-4de8-8ca6-f6a5f7034c18.png" alt="8750ed29-ec5b-4b0b-849b-9d9adc93bd66-image.png" class=" img-fluid img-markdown" /><br />
just look like the css style.But I dont know how to bind this to the qt c++ code.<br />
So if could give me the links to the grammar rules of the qtstylesheet would be great.</p>
]]></description><link>https://forum.qt.io/topic/139555/where-to-find-the-qtstylesheet-grammar-rules</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 04:00:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139555.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Sep 2022 10:17:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Where to find the qtstylesheet grammar rules? on Sun, 25 Sep 2022 10:32:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicker-player">@<bdi>nicker-player</bdi></a> said in <a href="/post/730088">Where to find the qtstylesheet grammar rules?</a>:</p>
<blockquote>
<p dir="auto">But I dont know how to bind this to the qt c++ code.</p>
</blockquote>
<p dir="auto">Don't know what this means.</p>
<blockquote>
<p dir="auto">So if could give me the links to the grammar rules of the qtstylesheet</p>
</blockquote>
<p dir="auto"><a href="https://doc.qt.io/qt-6/stylesheet-reference.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/stylesheet-reference.html</a><br />
<a href="https://doc.qt.io/qt-6/stylesheet-examples.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/stylesheet-examples.html</a><br />
In particular: <a href="https://doc.qt.io/qt-6/stylesheet-syntax.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/stylesheet-syntax.html</a></p>
<p dir="auto">Your particular example is an "advanced" one:</p>
<pre><code>.IconfontBtn[white_bk="true"]:disabled
</code></pre>
<p dir="auto">This *selector" applies to:</p>
<ol>
<li>A widget of a C++ class named <code>IconfontBtn</code>....</li>
<li>...which has a <a href="https://doc.qt.io/qt-6/stylesheet-examples.html#customizing-using-dynamic-properties" target="_blank" rel="noopener noreferrer nofollow ugc">dynamic property</a> set whose name is <code>white_bk</code> and which has a value of <code>true</code>...</li>
<li>...and it is currently set to <code>disabled</code>.</li>
</ol>
]]></description><link>https://forum.qt.io/post/730089</link><guid isPermaLink="true">https://forum.qt.io/post/730089</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 25 Sep 2022 10:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to Where to find the qtstylesheet grammar rules? on Mon, 26 Sep 2022 05:40:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicker-player">@<bdi>nicker-player</bdi></a> said in <a href="/post/730091">Where to find the qtstylesheet grammar rules?</a>:</p>
<blockquote>
<p dir="auto">Thanks .I just need the links.<br />
And by the way,in the project that some ui objects were created by the codes.</p>
</blockquote>
<p dir="auto">I assume you mean that some code was generated to match a UI you built in Qt Creator (or Designer).  The names in this code will match the names you see in Designer.  So if you have a form named <strong>MyForm</strong> containing a widget  with name <strong>pathLineEdit</strong> in the UI design then the generated code will contain a variable <strong>pathLineEdit</strong> that you can (usually) access your own code through a the <code>ui</code> pointer like this:</p>
<pre><code>ui-&gt;pathLineEdit-&gt;setText("blah");
</code></pre>
<p dir="auto">The actual generated code will be in the build directory in a file called <code>ui_MyWidget.h</code> that you will see as:</p>
<pre><code>#include "ui_MyWidget.h"
</code></pre>
<p dir="auto">in your MyForm class sources.</p>
]]></description><link>https://forum.qt.io/post/730139</link><guid isPermaLink="true">https://forum.qt.io/post/730139</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Mon, 26 Sep 2022 05:40:57 GMT</pubDate></item><item><title><![CDATA[Reply to Where to find the qtstylesheet grammar rules? on Sun, 25 Sep 2022 11:00:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicker-player">@<bdi>nicker-player</bdi></a><br />
Use search?  Search for <code>IconfontBtn</code>?  Search for <code>white_bk</code>?</p>
]]></description><link>https://forum.qt.io/post/730092</link><guid isPermaLink="true">https://forum.qt.io/post/730092</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 25 Sep 2022 11:00:25 GMT</pubDate></item><item><title><![CDATA[Reply to Where to find the qtstylesheet grammar rules? on Sun, 25 Sep 2022 10:59:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jonb">@<bdi>JonB</bdi></a><br />
Thanks .I just need the links.<br />
And by the way,in the project that some ui objects were created by the codes.There were so many lines of the project,I dont konw how to find the ui object codes from the project.Anything good idea that find the codes quickly?</p>
]]></description><link>https://forum.qt.io/post/730091</link><guid isPermaLink="true">https://forum.qt.io/post/730091</guid><dc:creator><![CDATA[nicker player]]></dc:creator><pubDate>Sun, 25 Sep 2022 10:59:05 GMT</pubDate></item><item><title><![CDATA[Reply to Where to find the qtstylesheet grammar rules? on Sun, 25 Sep 2022 10:32:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nicker-player">@<bdi>nicker-player</bdi></a> said in <a href="/post/730088">Where to find the qtstylesheet grammar rules?</a>:</p>
<blockquote>
<p dir="auto">But I dont know how to bind this to the qt c++ code.</p>
</blockquote>
<p dir="auto">Don't know what this means.</p>
<blockquote>
<p dir="auto">So if could give me the links to the grammar rules of the qtstylesheet</p>
</blockquote>
<p dir="auto"><a href="https://doc.qt.io/qt-6/stylesheet-reference.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/stylesheet-reference.html</a><br />
<a href="https://doc.qt.io/qt-6/stylesheet-examples.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/stylesheet-examples.html</a><br />
In particular: <a href="https://doc.qt.io/qt-6/stylesheet-syntax.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/stylesheet-syntax.html</a></p>
<p dir="auto">Your particular example is an "advanced" one:</p>
<pre><code>.IconfontBtn[white_bk="true"]:disabled
</code></pre>
<p dir="auto">This *selector" applies to:</p>
<ol>
<li>A widget of a C++ class named <code>IconfontBtn</code>....</li>
<li>...which has a <a href="https://doc.qt.io/qt-6/stylesheet-examples.html#customizing-using-dynamic-properties" target="_blank" rel="noopener noreferrer nofollow ugc">dynamic property</a> set whose name is <code>white_bk</code> and which has a value of <code>true</code>...</li>
<li>...and it is currently set to <code>disabled</code>.</li>
</ol>
]]></description><link>https://forum.qt.io/post/730089</link><guid isPermaLink="true">https://forum.qt.io/post/730089</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sun, 25 Sep 2022 10:32:03 GMT</pubDate></item></channel></rss>