<?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[[SOLVED] Qicon disabled full color]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm currently using a QTableWidget with some QIcons in the QTableWidgetItem. Some of them are disabled, some of them are not.<br />
When they are disabled, Qt automatically colors them in grey. I want to disabled this grey color for disabled icon for aesthetic issues.<br />
The icons would all look alike.</p>
<p dir="auto">I can't find a way to do it. Someone know?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/6971/solved-qicon-disabled-full-color</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 18:16:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/6971.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Jun 2011 10:20:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Qicon disabled full color on Fri, 24 Jun 2011 13:05:37 GMT]]></title><description><![CDATA[<p dir="auto">Yep!</p>
<p dir="auto">That worked well!</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/post/94167</link><guid isPermaLink="true">https://forum.qt.io/post/94167</guid><dc:creator><![CDATA[evergreen]]></dc:creator><pubDate>Fri, 24 Jun 2011 13:05:37 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Qicon disabled full color on Fri, 24 Jun 2011 12:59:27 GMT]]></title><description><![CDATA[<p dir="auto">Try<br />
@<br />
QTableWidgetItem *name = new QTableWidgetItem("test");<br />
QIcon icon("toto.png");<br />
icon.addPixmap(QPixmap("toto.png"),QIcon::Disabled);<br />
name-&gt;setIcon(icon);<br />
@</p>
]]></description><link>https://forum.qt.io/post/94163</link><guid isPermaLink="true">https://forum.qt.io/post/94163</guid><dc:creator><![CDATA[loladiro]]></dc:creator><pubDate>Fri, 24 Jun 2011 12:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Qicon disabled full color on Fri, 24 Jun 2011 12:44:11 GMT]]></title><description><![CDATA[<p dir="auto">@QTableWidgetItem *name = new QTableWidgetItem("test");<br />
QIcon icon("toto.png");<br />
name-&gt;setIcon(icon);<br />
icon.addPixmap(QPixmap("toto.png"),QIcon::Disabled);@</p>
<p dir="auto">I tried this but it doesn't work...!</p>
]]></description><link>https://forum.qt.io/post/94159</link><guid isPermaLink="true">https://forum.qt.io/post/94159</guid><dc:creator><![CDATA[evergreen]]></dc:creator><pubDate>Fri, 24 Jun 2011 12:44:11 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Qicon disabled full color on Fri, 24 Jun 2011 12:14:12 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I might have lead you on the wrong track here. The above method works with widgets, but not icons. What you could do though is something like this:<br />
@<br />
QIcon icon;<br />
icon.addPixmap(pixmap,QIcon::Active);<br />
icon.addPixmap(pixmap,QIcon::Disabled);<br />
@</p>
]]></description><link>https://forum.qt.io/post/94136</link><guid isPermaLink="true">https://forum.qt.io/post/94136</guid><dc:creator><![CDATA[loladiro]]></dc:creator><pubDate>Fri, 24 Jun 2011 12:14:12 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Qicon disabled full color on Fri, 24 Jun 2011 10:58:37 GMT]]></title><description><![CDATA[<p dir="auto">I never used QPalette before, I really have no idea how to do what you say.<br />
Could give me an example of its use?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/post/94114</link><guid isPermaLink="true">https://forum.qt.io/post/94114</guid><dc:creator><![CDATA[evergreen]]></dc:creator><pubDate>Fri, 24 Jun 2011 10:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Qicon disabled full color on Fri, 24 Jun 2011 10:27:42 GMT]]></title><description><![CDATA[<p dir="auto">It's possible with "QPalette":<a href="http://doc.qt.nokia.com/4.7/qpalette.htm" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.7/qpalette.htm</a><br />
You'll have to adjust the colors in the disabled group to be the same as in the active color group</p>
]]></description><link>https://forum.qt.io/post/94102</link><guid isPermaLink="true">https://forum.qt.io/post/94102</guid><dc:creator><![CDATA[loladiro]]></dc:creator><pubDate>Fri, 24 Jun 2011 10:27:42 GMT</pubDate></item></channel></rss>