<?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 to rotate font awesome icon in qt]]></title><description><![CDATA[<p dir="auto">i am showing font awesome icon on label. i want to not rotate label. i want to rotate this icon how its possible?</p>
]]></description><link>https://forum.qt.io/topic/122034/how-to-rotate-font-awesome-icon-in-qt</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 18:55:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/122034.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Dec 2020 09:32:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to rotate font awesome icon in qt on Mon, 28 Dec 2020 06:41:15 GMT]]></title><description><![CDATA[<p dir="auto">i have created child class for  inherited base class label . then in child class i used paint event , in same event i used below QStylePainter to rotate my font awesome icon  like below</p>
<h1></h1>
<p dir="auto">QStylePainter painter(this);<br />
QFont font1;<br />
font1.setFamily("FontAwesome");<br />
font1.setPixelSize(30);<br />
painter.setFont(font1);<br />
painter.rotate(90);<br />
painter.drawText(0, 0, ICON_BOLT);</p>
<h1></h1>
]]></description><link>https://forum.qt.io/post/634490</link><guid isPermaLink="true">https://forum.qt.io/post/634490</guid><dc:creator><![CDATA[Qt embedded developer]]></dc:creator><pubDate>Mon, 28 Dec 2020 06:41:15 GMT</pubDate></item><item><title><![CDATA[Reply to how to rotate font awesome icon in qt on Thu, 24 Dec 2020 04:57:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> i think your suggested property only can rotate image but can not rotate font awesome icon</p>
]]></description><link>https://forum.qt.io/post/634127</link><guid isPermaLink="true">https://forum.qt.io/post/634127</guid><dc:creator><![CDATA[Qt embedded developer]]></dc:creator><pubDate>Thu, 24 Dec 2020 04:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to how to rotate font awesome icon in qt on Wed, 23 Dec 2020 15:14:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> I have tried many things .</p>
<p dir="auto">So I think qt does not support the rotate function for font awesome icon.</p>
<p dir="auto">Is it true or not ?</p>
<p dir="auto">If its true then  please provide provide example for rotate font awesome icon ICON_BOLT [ \uF0E7]</p>
<p dir="auto">ui-&gt;label_2-&gt;setText(ICON_BOLT);</p>
]]></description><link>https://forum.qt.io/post/633978</link><guid isPermaLink="true">https://forum.qt.io/post/633978</guid><dc:creator><![CDATA[Qt embedded developer]]></dc:creator><pubDate>Wed, 23 Dec 2020 15:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to how to rotate font awesome icon in qt on Wed, 23 Dec 2020 09:36:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qt-embedded-developer">@<bdi>Qt-embedded-developer</bdi></a> You can use one of the <a href="https://doc.qt.io/qt-5/qicon.html#pixmap" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qicon.html#pixmap</a> methods to get QPixmap, then rotate it using <a href="https://doc.qt.io/qt-5/qpixmap.html#transformed" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qpixmap.html#transformed</a> and constrcu QIcon again from that rotated QPixmap.</p>
]]></description><link>https://forum.qt.io/post/633969</link><guid isPermaLink="true">https://forum.qt.io/post/633969</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 23 Dec 2020 09:36:28 GMT</pubDate></item></channel></rss>