rendering svg using QGraphicsSVGItem slows doen the performance
Hi,
I have created application using graphicaview architecture. I can create several different items on the view.
Items can be movable, focusable. But when i create svg item by using QGraphicsSvgItem, performance of the application slows down.
This happens specially with the large svg files.
Any idea how to imrove the performance.
regards,
~Sanjay
Re: rendering svg using QGraphicsSVGItem slows doen the performance
Yes - don't use SVG files.
Re: rendering svg using QGraphicsSVGItem slows doen the performance
Thanks.
But we also need to scale the items. So if we use the images like .png, that will be at the cost of quality.
where as scaling the svg preserve the quality of the image.
Re: rendering svg using QGraphicsSVGItem slows doen the performance
Well... you can't have both speed and agility, unfortunately. The only thing you can do is to enable caching for your svg items. Use QGraphicsItem::DeviceCoordinateCache.
Re: rendering svg using QGraphicsSVGItem slows doen the performance
If you have a videocard; use a QGLWidget as viewport in you're GraphicsView (setViewport()) and not a normal QWidget.