qwtscrollbar overlap curve
HongLiang Wang <hongliang.wang <at> hvr-software.com>
2012-06-13 07:50:04 GMT
Hello all,
I got two requirements:
1. Using scrollbar when zooming.
2. Sync scrollbar of different plots.
I basically followed qwt example 'realtime' for requirement 1.
In order to acrhieve requirement 2 I had to make scrollbars to be shown alwayson, because the scrollbars have to be created so that the parent widget can sync them using following code.
/* Create plot */
stat_graph= new JBStatGraph(scrollAreaWidgetContents,
scrollAreaWidgetLayout,
row, domain_unique,
domain->getTimeString(),
domain->getTimeValue());
/* Sync horizontal scrollbars */
if(row % 2 == 0) {
hbar_even= stat_graph->zoomer->horizontalScrollBar();
}
else {
hbar_odd= stat_graph->zoomer->horizontalScrollBar();
}
if(hbar_even && hbar_odd) {
connect(hbar_even, SIGNAL(valueChanged(int)),
hbar_odd, SLOT(setValue(int)));
connect(hbar_odd, SIGNAL(valueChanged(int)),
hbar_even, SLOT(setValue(int)));
}
But the side effect is that qwtscrollbar is overlaping part of the curve ( shown in attachment qwt_01.png).
When zooming starts, qwtscrollbar works fine (shown in attachment qwt_02.png).
Setting scrollbars to be shown when needed may not work for sync.
I have been working on this for several days and any help is appreciated.
Regards,
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
www.hvr-software.com


------------------------------------------------------------------------------
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