<?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[How can i change padding for icon on QMenuBar::item]]></title><description><![CDATA[<pre><code>QMenu::item {
    min-height: 20px;
    background-color: #444444;
    color : white;
    border: 1px solid;
    border-color: #444444;
    padding-left: 25px;
    padding-right: 20px;
    font-size: 12px;
    font-weight: normal;
}</code></pre>
]]></description><link>https://forum.qt.io/topic/89473/how-can-i-change-padding-for-icon-on-qmenubar-item</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 18:28:17 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/89473.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Apr 2018 07:47:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can i change padding for icon on QMenuBar::item on Tue, 03 Apr 2018 12:07:59 GMT]]></title><description><![CDATA[<p dir="auto">@J-Hilk<br />
hi, thanks for example, it works:</p>
<pre><code>QMenu::icon {
    padding-left: 5px;
}
</code></pre>
]]></description><link>https://forum.qt.io/post/450957</link><guid isPermaLink="true">https://forum.qt.io/post/450957</guid><dc:creator><![CDATA[Craetor]]></dc:creator><pubDate>Tue, 03 Apr 2018 12:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to How can i change padding for icon on QMenuBar::item on Tue, 03 Apr 2018 11:20:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craetor">@<bdi>Craetor</bdi></a><br />
hi, according to the <a href="http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu" target="_blank" rel="noopener noreferrer nofollow ugc">QStyleSheet example</a> the correct way to target the itcon should either be <code>QMenu::icon</code> or  <code>QMenu::indicator</code> did you set any of those in your stylsheet?</p>
]]></description><link>https://forum.qt.io/post/450953</link><guid isPermaLink="true">https://forum.qt.io/post/450953</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Tue, 03 Apr 2018 11:20:19 GMT</pubDate></item><item><title><![CDATA[Reply to How can i change padding for icon on QMenuBar::item on Tue, 03 Apr 2018 10:59:36 GMT]]></title><description><![CDATA[<p dir="auto">Any solutions?</p>
<p dir="auto">I can shift the text by padding-left. I also need to shift the icon.  I try to search style sheet example, but no any cases. What i should to do?</p>
<p dir="auto"><img alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/450949</link><guid isPermaLink="true">https://forum.qt.io/post/450949</guid><dc:creator><![CDATA[Craetor]]></dc:creator><pubDate>Tue, 03 Apr 2018 10:59:36 GMT</pubDate></item></channel></rss>