<?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[QGraphicsPathItem does not get hover events when mouse button is pressed]]></title><description><![CDATA[<p dir="auto">My item only gets hover events when the mouse button is not pressed. This is also true if the item is selected. How can I get hover events all the time?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/20746/qgraphicspathitem-does-not-get-hover-events-when-mouse-button-is-pressed</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 10:55:36 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/20746.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Oct 2012 23:11:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QGraphicsPathItem does not get hover events when mouse button is pressed on Sun, 28 Oct 2012 22:11:55 GMT]]></title><description><![CDATA[<p dir="auto">Sorry guys but it is completely unclear to me what happens while I drag the mouse. The only mouse-related events I get are mouseMove, mousePress and mouseRelease of the QGraphicsScene. There are no drag events, hover events or anything else. Not from the item where I start to drag, not from the view...nothing.</p>
<p dir="auto">I can drag items around if I set the correct flag but I don't want to drag this item. What I want to do is to change the colour of the item depending on some logic behind the scenes but without an event I would have to check the items under the mouse on every bit of movement and most of them are not colour changing ones so it would be a lot of overhead which is quite useless.</p>
<p dir="auto">I am happy to override every method in every class but I have to know where and I cannot find it.</p>
<p dir="auto">Any hints are more then welcome!</p>
]]></description><link>https://forum.qt.io/post/155641</link><guid isPermaLink="true">https://forum.qt.io/post/155641</guid><dc:creator><![CDATA[butterface]]></dc:creator><pubDate>Sun, 28 Oct 2012 22:11:55 GMT</pubDate></item><item><title><![CDATA[Reply to QGraphicsPathItem does not get hover events when mouse button is pressed on Tue, 23 Oct 2012 19:07:31 GMT]]></title><description><![CDATA[<p dir="auto">I will do that as soon as it <strong>is</strong> solved. What I added is just more information but as far away from a solution as it can be.</p>
]]></description><link>https://forum.qt.io/post/155233</link><guid isPermaLink="true">https://forum.qt.io/post/155233</guid><dc:creator><![CDATA[butterface]]></dc:creator><pubDate>Tue, 23 Oct 2012 19:07:31 GMT</pubDate></item><item><title><![CDATA[Reply to QGraphicsPathItem does not get hover events when mouse button is pressed on Tue, 23 Oct 2012 14:19:31 GMT]]></title><description><![CDATA[<p dir="auto">Please Edit your Question and prepend <em>[Solved]</em>....</p>
]]></description><link>https://forum.qt.io/post/155202</link><guid isPermaLink="true">https://forum.qt.io/post/155202</guid><dc:creator><![CDATA[Macro]]></dc:creator><pubDate>Tue, 23 Oct 2012 14:19:31 GMT</pubDate></item><item><title><![CDATA[Reply to QGraphicsPathItem does not get hover events when mouse button is pressed on Sat, 20 Oct 2012 22:12:11 GMT]]></title><description><![CDATA[<p dir="auto">I figured out that</p>
<p dir="auto">@<br />
option-&gt;state &amp; QStyle::State_MouseOver<br />
@</p>
<p dir="auto">stays <em>true</em> if the mouse is pressed over an item and dragged. This happens even if I don't pass the <em>mousePressEvent</em> to the parent in this case. It seems that the scene is in some kind of move mode even though the item is not moveable.</p>
]]></description><link>https://forum.qt.io/post/155005</link><guid isPermaLink="true">https://forum.qt.io/post/155005</guid><dc:creator><![CDATA[butterface]]></dc:creator><pubDate>Sat, 20 Oct 2012 22:12:11 GMT</pubDate></item></channel></rss>