<?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[Move rectangle by mouse dragging]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I would like to draw a rectangle on my jpg image and move the rectangle by mouse dragging<br />
. I could load my jpg image file on QLabel object by painter.drawImage(QPoint(0, 0), myJpegImage); in paintEvent(). I also could draw Rect using painter-&gt;drawRect(myRect). But I don't know how to move my rect by mouse dragging. Any suggestions?</p>
]]></description><link>https://forum.qt.io/topic/75279/move-rectangle-by-mouse-dragging</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:18:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/75279.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Jan 2017 00:16:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Move rectangle by mouse dragging on Thu, 19 Jan 2017 01:18:39 GMT]]></title><description><![CDATA[<p dir="auto">QGraphicsView/QGraphicsScene might be what you are looking for.</p>
]]></description><link>https://forum.qt.io/post/370331</link><guid isPermaLink="true">https://forum.qt.io/post/370331</guid><dc:creator><![CDATA[Oleksandr Malyushytskyy]]></dc:creator><pubDate>Thu, 19 Jan 2017 01:18:39 GMT</pubDate></item></channel></rss>