<?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] QPushButton with own icon has no rollover effect]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I would like to have a customized button.</p>
<p dir="auto">For that I placed in "Qt Creator"-&gt;"Design" a "Push Button" in my window. In the properties menu of the "Push Button" I set my icon. To have effects like rollover, pressed I tried to set various icons ( Normal on/off, Active on/off, Disabled on/off, Selected on/off ...).</p>
<p dir="auto">My problem is that the button doesn't react if my mouse rolls over the icon. I thought that I have only to set the properties in the Designer. Do I have to write some additional code for this rollover effect? Or is a property missing? Any ideas?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/47725/solved-qpushbutton-with-own-icon-has-no-rollover-effect</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 16:05:52 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47725.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Nov 2014 11:53:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] QPushButton with own icon has no rollover effect on Mon, 03 Nov 2014 22:11:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">By rollover, do you mean hover ? In any case, if you want to modify the icon when the mouse hovers your button, you'll have to implement that yourself.  Have a look at the "QHoverEvent":<a href="http://qt-project.org/doc/qt-5/qhoverevent.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/qhoverevent.html</a>.</p>
<p dir="auto">Hope it helps</p>
]]></description><link>https://forum.qt.io/post/250082</link><guid isPermaLink="true">https://forum.qt.io/post/250082</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 03 Nov 2014 22:11:18 GMT</pubDate></item></channel></rss>