<?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[Draw vertical line at mouse position]]></title><description><![CDATA[<p dir="auto">How can I create a line at the mouse position when I press left click?</p>
<p dir="auto">I'm trying to figure out how does ponter.DrawLine works but I don't manage to do it and I'm getting a lot of shapes but not what I want.</p>
]]></description><link>https://forum.qt.io/topic/139252/draw-vertical-line-at-mouse-position</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 01:17:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139252.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Sep 2022 13:24:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Draw vertical line at mouse position on Mon, 12 Sep 2022 13:55:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marcelnitan">@<bdi>marcelnitan</bdi></a> said in <a href="/post/728378">Draw vertical line at mouse position</a>:</p>
<blockquote>
<p dir="auto">ponter.DrawLine</p>
</blockquote>
<p dir="auto">What is that?<br />
To paint on widgets subclass needed Qt widget class and overrid paintEvent and use <a href="https://doc.qt.io/qt-6/qpainter.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qpainter.html</a> for painting. To draw a line use <a href="https://doc.qt.io/qt-6/qpainter.html#drawLine-2" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qpainter.html#drawLine-2</a></p>
]]></description><link>https://forum.qt.io/post/728386</link><guid isPermaLink="true">https://forum.qt.io/post/728386</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 12 Sep 2022 13:55:51 GMT</pubDate></item></channel></rss>