<?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] a:hover html css in QLabel not working.]]></title><description><![CDATA[<p dir="auto">@    ui-&gt;label-&gt;setText("&lt;!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN' '<a href="http://www.w3.org/TR/REC-html40/strict.dtd" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.w3.org/TR/REC-html40/strict.dtd</a>'&gt;"<br />
"&lt;html&gt;&lt;head&gt;&lt;style type=text/css&gt;"<br />
"a {color:#55789b; text-decoration:none;}"<br />
"a:hover {color:#f9e699; text-decoration:underline;}"<br />
"&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;a href='<a href="http://google.com" target="_blank" rel="noopener noreferrer nofollow ugc">http://google.com</a>'&gt;google&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;");<br />
@<br />
this code not working. why? and how to do correct?<br />
line "a { ... }" working, but on hover - no reaction about color changing and underliling.</p>
]]></description><link>https://forum.qt.io/topic/11504/solved-a-hover-html-css-in-qlabel-not-working</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 06:16:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/11504.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Nov 2011 07:47:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [solved] a:hover html css in QLabel not working. on Thu, 07 Jun 2012 03:10:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'm also facing the same problem. Need to change the text color of the QLabel when I hover the text. Please see my below code:<br />
@<br />
mylabel-&gt;setText("&lt;a &gt; click here &lt;/a&gt;");<br />
@<br />
I need to do it using qss file?</p>
]]></description><link>https://forum.qt.io/post/125767</link><guid isPermaLink="true">https://forum.qt.io/post/125767</guid><dc:creator><![CDATA[johncharlesbgmail.com]]></dc:creator><pubDate>Thu, 07 Jun 2012 03:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to [solved] a:hover html css in QLabel not working. on Mon, 21 Nov 2011 08:16:26 GMT]]></title><description><![CDATA[<p dir="auto">thnx. I got it and doing throw setCursor, Qss for label and eventFilter for click =(</p>
]]></description><link>https://forum.qt.io/post/117546</link><guid isPermaLink="true">https://forum.qt.io/post/117546</guid><dc:creator><![CDATA[abrakadobr]]></dc:creator><pubDate>Mon, 21 Nov 2011 08:16:26 GMT</pubDate></item><item><title><![CDATA[Reply to [solved] a:hover html css in QLabel not working. on Mon, 21 Nov 2011 08:10:45 GMT]]></title><description><![CDATA[<p dir="auto">Normally none of the mouse interaction affect the text, the only exception concerns the links.</p>
]]></description><link>https://forum.qt.io/post/117543</link><guid isPermaLink="true">https://forum.qt.io/post/117543</guid><dc:creator><![CDATA[BilbonSacquet]]></dc:creator><pubDate>Mon, 21 Nov 2011 08:10:45 GMT</pubDate></item></channel></rss>