<?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[How to get current cursor position into QML]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">My idea is simple. I want a custom cursor with in my application. But this cursor is a QML component. So, it cant be done using QCursor().<br />
Someone suggested me to use Qt::BlankCursor to make the cursor invisible &amp; then palace the QML component over cursor position.<br />
<em>So, I want the cursor position fed to QML.</em></p>
<p dir="auto">I tried following ways</p>
<ul>
<li>Making cursor object into context memory but the x,y values of cursor changes over time which the QML application could not get.</li>
<li>We can have a mouse area all over the application and get it as this:<br />
@x: mouseArea.mouseX - width/2<br />
y: mouseArea.mouseY - width/2@<br />
But this mouse area will overlap with other mouse areas inside the app &amp; application wont work.</li>
</ul>
<p dir="auto">Can someone please help me resolve this.</p>
<p dir="auto">NOTE: It would be great to have a platform independent solution.</p>
<p dir="auto">Regards,<br />
inblueswithu</p>
]]></description><link>https://forum.qt.io/topic/33844/how-to-get-current-cursor-position-into-qml</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:53:49 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/33844.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Nov 2013 10:01:08 GMT</pubDate><ttl>60</ttl></channel></rss>