13 Jun 2012 12:04
Re: qwtscrollbar overlap curve
HongLiang Wang <hongliang.wang <at> hvr-software.com>
2012-06-13 10:04:14 GMT
2012-06-13 10:04:14 GMT
Hello Uwe,
Thanks for your quick reply. I added following code to my plot constructor as you suggested:
zoomer= new JBStatZoomer(canvas());
QwtPlotLayout *plot_layout = plotLayout();
const int xAxis = zoomer->xAxis();
plot_layout->setCanvasMargin( plot_layout->canvasMargin( xAxis )
+ zoomer->horizontalScrollBar()->extent(),
xAxis );
const int xAxis = zoomer->xAxis();
plot_layout->setCanvasMargin( plot_layout->canvasMargin( xAxis )
+ zoomer->horizontalScrollBar()->extent(),
xAxis );
But this code still has no effect.
Can you please double check if my code was correct?
Thanks.
Hongliang Wang
HVR Software bv | Haaksbergweg 45 | 1101 BR Amsterdam | The Netherlands
T. +31-020 312 7517 | F. +31-020 312 7509 | hongliang.wang <at> hvr-software.com
On Wed, Jun 13, 2012 at 11:40 AM, Uwe Rathmann <Uwe.Rathmann <at> tigertal.de> wrote:
On 06/13/2012 09:50 AM, HongLiang Wang wrote:What about setting margins corresponding to the extent of the scrollbars
>
> But the side effect is that qwtscrollbar is overlaping part of the
> curve ( shown in attachment qwt_01.png).
to your plot layout. See QwtPlotLayout::setCanvasMargin().
Uwe
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ qwt-interest mailing list qwt-interest <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qwt-interest
RSS Feed