You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, March 26th 2014, 12:59pm

svg item problem in qwt

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 used this;

Source code

1
2
3
4
QwtPlotSvgItem *item = new QwtPlotItem;
item->loadData(QRectF(100,100,100,100),":myImage");
item->setItemAttribute(QwtPlotSvgItem::AutoScale,false);
item->attach(this);



and it didnt work. Secondly I added zoomAndPan = "disable" this tag to inside svg file. it didnt work again. I dont know what I am missing.
Is there any advice for it?