PDA

View Full Version : Problems with svg items



alperyazir66
26th March 2014, 11:57
Hello everyone,

I have a plot that contains some svg items with using QwtPlotSvgItem. And I also use mouseEvents on these Svg items. But when i zooming with mouse wheel these svg items scale are changing. I want them stable. I mean they should not effect to zooming. I cant solve it.

Is there any advice for it?

Uwe
26th March 2014, 13:04
QwtPlotSvgItem scales the corrdinates of the SVG icon according to plot coordinates - if you don't want that use a QwPlotMarker with the SVG as symbol.

Uwe

alperyazir66
26th March 2014, 13:17
Yeah i can do that but when i use QwtPlotMarker with SVG as symbol how can i use mouse event (right, left clicks vs ) on them?