<?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[Button hovering]]></title><description><![CDATA[<p dir="auto">HI all,</p>
<p dir="auto">I was following "Video tutorial ":<a href="https://www.youtube.com/watch?v=d0CDMtfefB4" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=d0CDMtfefB4</a> on "Qt mouce events on a qlabel".<br />
It was great when i hovered over one label the color changed on another label.</p>
<p dir="auto">and that got me thinking if i can do the same with a button and yes i can.</p>
<p dir="auto">Thar are Tree things i don't like about this approach.</p>
<ol>
<li>it take a lot of code to handle the mouse events this is not very handy if you got a lot of buttons.(like me)</li>
<li>it destroy all the default click events.</li>
<li>you need a extra label to change the color of.</li>
</ol>
<p dir="auto">so is their a  better way of handling a button hover.</p>
<p dir="auto">for example.</p>
<p dir="auto">there is a default Click</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/void">@<bdi>void</bdi></a> Dialog::on_pushButton_clicked()@</p>
<p dir="auto">is there also a default Hover like below.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/void">@<bdi>void</bdi></a> Dialog::on_pushButton_hover()@</p>
<p dir="auto">Or is there some other way of detecting a hover on a button.</p>
<p dir="auto">Thanx in advanced for the info.</p>
<p dir="auto">Bart</p>
]]></description><link>https://forum.qt.io/topic/48902/button-hovering</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 02:12:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/48902.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Dec 2014 13:27:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button hovering on Fri, 05 Dec 2014 14:13:29 GMT]]></title><description><![CDATA[<p dir="auto">ideed that wil work.<br />
i still have to put in a lot of code but it keeps the default  mouse click events.</p>
<p dir="auto">I am stil finding it a little disappointing that is not included as a default event for a button</p>
<p dir="auto">but yes i will get is to work.</p>
<p dir="auto">Thanx msue</p>
]]></description><link>https://forum.qt.io/post/253337</link><guid isPermaLink="true">https://forum.qt.io/post/253337</guid><dc:creator><![CDATA[Ducky]]></dc:creator><pubDate>Fri, 05 Dec 2014 14:13:29 GMT</pubDate></item><item><title><![CDATA[Reply to Button hovering on Fri, 05 Dec 2014 13:34:10 GMT]]></title><description><![CDATA[<p dir="auto">There are virtual protected functions:<br />
void QWidget::enterEvent ( QEvent * event )<br />
void QWidget::leaveEvent ( QEvent * event )<br />
you can use</p>
]]></description><link>https://forum.qt.io/post/253335</link><guid isPermaLink="true">https://forum.qt.io/post/253335</guid><dc:creator><![CDATA[msue]]></dc:creator><pubDate>Fri, 05 Dec 2014 13:34:10 GMT</pubDate></item></channel></rss>