[Qgis-developer] Is QGIS supports dynamic display?

Spartucus niubob at hotmail.com
Mon Sep 15 20:18:40 PDT 2014


Never mind. I solved the problem.

void TFMapCanvasSvgItem::paint(QPainter* painter)
{
	if (!painter)
	{
		return;
	}
	QImage svgImage(50, 40, QImage::Format_ARGB32);
	svgImage.fill(Qt::transparent);
	QPainter imagePainter(&svgImage);
	mSvgRenderer.render(&imagePainter);
	painter->drawImage(QRectF(0, 0, 100, 80), svgImage, QRectF(0, 0, 100, 80));
	painter->restore();
}



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Is-QGIS-supports-dynamic-display-tp5155726p5161992.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list