<?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[QML change rotation origin]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I have this items built with this code:</p>
<pre><code>MapItemView {
                id: item
                MapCircle {
                    id: circle
                    center {
                        latitude: 40.353586
                        longitude: -3.745564
                    }
                    radius: 5.0
                    color: '#BF008000'
                    border.width: 3
                }

                MapPolygon {
                    id: polygon
                    color: '#BF008000'
                    path: [
                        { latitude: 40.353586, longitude: -3.745564 },
                        { latitude: 40.354060, longitude: -3.745146 },
                        { latitude: 40.353772, longitude: -3.744883 }
                    ]
                }

                transform: Rotation {
                    id: rotate
                    angle: 0
                    origin.x: (circle.TopLeft + circle.width) / 2
                    origin.y: (circle.TopLeft + circle.height) / 2
                }
            }
</code></pre>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/6b8be476-85aa-4bb1-bce6-2a7711d89dbf.png" alt="5d3aa2b7-3836-4df1-9636-f068c0b28553-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I need to rotate it putting the origin in the center of the circle. Now, with this code, the movement isn't correct at all when I rotate it:</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/96df410e-55af-4e08-b177-0dbe864eb388.png" alt="6f3f3d92-63f7-47bb-82af-f1e9d6b2ae2f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I need the circle keeps its position.</p>
<p dir="auto">Do you know how to do it?</p>
<p dir="auto">Thank you very much!</p>
]]></description><link>https://forum.qt.io/topic/140144/qml-change-rotation-origin</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 23:40:46 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/140144.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Oct 2022 07:41:02 GMT</pubDate><ttl>60</ttl></channel></rss>