<?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[MapToSceneDistance() needed?]]></title><description><![CDATA[<p dir="auto">Is there a way to map distances between coordinate systems?  E.G. QGraphicsView.mapToSceneDistance(QPoint).  For example, Cairo rendering tool has such a function.</p>
<p dir="auto">I had bug in my code, where I was calling mapToScene (incrementalMouseMotion), to implement smooth scrolling.  As long as the view and scene coordinate systems are aligned, this returns a proper distance.  But once I called view.translate() with that distance, of course I got the typical complaint, my graphic items just danced a little since then the coordinate systems were not aligned on subsequent mouse motions.</p>
<p dir="auto">Am I missing something in the API?  I know its easy to work around, but it constrains my approach.</p>
]]></description><link>https://forum.qt.io/topic/16446/maptoscenedistance-needed</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 13:27:38 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/16446.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 May 2012 01:52:38 GMT</pubDate><ttl>60</ttl></channel></rss>