<?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] Need some explanation about HTML on labels...]]></title><description><![CDATA[<p dir="auto">So with this code<br />
@    ui-&gt;label-&gt;setText("&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a &gt;&lt;span style=" text-decoration: underline;  color:#dd4814;"&gt;"+tr("How to use")+" ""+tr("Live Earth")+"" "+tr("page")+"?&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;");<br />
@</p>
<p dir="auto">i have this label:<br />
!<a href="http://i.imgur.com/Q2xlnZt.png(1)" target="_blank" rel="noopener noreferrer nofollow ugc">http://i.imgur.com/Q2xlnZt.png(1)</a>!</p>
<p dir="auto">Which is wrong because i have text-decoration:underline; which cannot be seen</p>
<p dir="auto">If i add one &lt;br&gt; like:<br />
@    ui-&gt;label-&gt;setText("&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a &gt;&lt;span style=" text-decoration: underline;  color:#dd4814;"&gt;"+tr("How to use")+"&lt;br&gt;"+" ""+tr("Live Earth")+"" "+tr("page")+"?&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;");<br />
@</p>
<p dir="auto">label becomes<br />
!<a href="http://i.imgur.com/b5jI3ju.png(2)" target="_blank" rel="noopener noreferrer nofollow ugc">http://i.imgur.com/b5jI3ju.png(2)</a>!</p>
<p dir="auto">you can see only 1st line becomes underlined.. I need some help :D</p>
]]></description><link>https://forum.qt.io/topic/31422/solved-need-some-explanation-about-html-on-labels</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 09:57:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/31422.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Aug 2013 11:53:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Need some explanation about HTML on labels... on Sat, 31 Aug 2013 12:42:50 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="DerManu" date="1377952346"]Looks like the underline is clipped by the label height. You could try giving it a minimum height that exceeds the normal one. However, this will make your label less flexible (different screen resolutions/font sizes/translations might need different minimum heights to work properly...)</p>
<p dir="auto">Another thing: Why don't you include the quotation marks around <em>Live Earth</em> in the translation string? The current way you're doing it will not allow proper translation, because not all languages follow the syntax (word ordering) that you've hardcoded there.[/quote]</p>
<p dir="auto">Hmm yeah you are right, its about the underline getting  clipped by the label height...</p>
<p dir="auto">Well thanks for answering, i was really confused on what i was doing wrong and in the end seems like a qt thing cutting the underline of every label..</p>
]]></description><link>https://forum.qt.io/post/193538</link><guid isPermaLink="true">https://forum.qt.io/post/193538</guid><dc:creator><![CDATA[Leon]]></dc:creator><pubDate>Sat, 31 Aug 2013 12:42:50 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Need some explanation about HTML on labels... on Sat, 31 Aug 2013 12:32:26 GMT]]></title><description><![CDATA[<p dir="auto">Looks like the underline is clipped by the label height. You could try giving it a minimum height that exceeds the normal one. However, this will make your label less flexible (different screen resolutions/font sizes/translations might need different minimum heights to work properly...)</p>
<p dir="auto">Another thing: Why don't you include the quotation marks around <em>Live Earth</em> in the translation string? The current way you're doing it will not allow proper translation, because not all languages follow the syntax (word ordering) that you've hardcoded there.</p>
]]></description><link>https://forum.qt.io/post/193536</link><guid isPermaLink="true">https://forum.qt.io/post/193536</guid><dc:creator><![CDATA[DerManu]]></dc:creator><pubDate>Sat, 31 Aug 2013 12:32:26 GMT</pubDate></item></channel></rss>