<?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[Hi all, how to read selected region qwt plot coordinates ??]]></title><description><![CDATA[<p dir="auto">with the following code ,am able to select region and reading curve data but not getting correct values missing index order of closestpoint ,suggestions please</p>
<p dir="auto">picker = new QwtPlotPicker(QwtPlot::xBottom,QwtPlot::yLeft,<br />
QwtPicker::RectRubberBand,QwtPicker::AlwaysOn, myPlot-&gt;canvas());<br />
QwtPickerDragRectMachine* test = new QwtPickerDragRectMachine();<br />
test-&gt;setState(QwtPickerMachine::RectSelection);<br />
picker-&gt;setStateMachine(test);</p>
<p dir="auto">//connect(picker, SIGNAL(selected(const QPolygon)),this,SLOT( click_on_graph(const QPolygon)));<br />
connect(picker, SIGNAL(selected(QRectF)),this,SLOT( click_on_graph(QRectF)));<br />
}<br />
void Mainwindow::click_on_graph(QRectF area)<br />
{<br />
int start;<br />
int width=area.width();<br />
start = curve-&gt;closestPoint(picker-&gt;trackerPosition());<br />
qDebug()&lt;&lt;"index="&lt;&lt;start;<br />
for(int i=0;i&lt;=(width-1);i++)<br />
{<br />
QPointF graphintensity=this-&gt;curve-&gt;sample(start+(i));<br />
qDebug()&lt;&lt;"x="&lt;&lt;graphintensity;<br />
}<br />
}<br />
points 274 - 290<br />
start point 274 and end point 290 in between only need to read<br />
but here start is 282 and end is 297</p>
<p dir="auto">x= QPointF(282.644,4.28082e+09)<br />
x= QPointF(283.644,4.27951e+09)<br />
x= QPointF(284.644,4.27911e+09)<br />
x= QPointF(285.644,4.27898e+09)<br />
x= QPointF(286.644,4.27898e+09)<br />
x= QPointF(287.644,4.27898e+09)<br />
x= QPointF(288.644,4.27891e+09)<br />
x= QPointF(289.644,4.27885e+09)<br />
x= QPointF(290.644,4.27885e+09)<br />
x= QPointF(291.644,4.27891e+09)<br />
x= QPointF(292.644,4.27891e+09)<br />
x= QPointF(293.644,4.27878e+09)<br />
x= QPointF(294.644,4.27885e+09)<br />
x= QPointF(295.644,4.27885e+09)<br />
x= QPointF(296.644,4.27885e+09)<br />
x= QPointF(297.644,4.27891e+09)</p>
]]></description><link>https://forum.qt.io/topic/65071/hi-all-how-to-read-selected-region-qwt-plot-coordinates</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:00:13 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/65071.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Mar 2016 02:50:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hi all, how to read selected region qwt plot coordinates ?? on Mon, 14 Mar 2016 21:14:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You should bring this to the QWT folks. They likely be faster to help you with this question.</p>
]]></description><link>https://forum.qt.io/post/317954</link><guid isPermaLink="true">https://forum.qt.io/post/317954</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 14 Mar 2016 21:14:04 GMT</pubDate></item></channel></rss>