void init() { Q_Q(QGraphicsSvgItem); renderer = new QSvgRenderer(q); QObject::connect(renderer, SIGNAL(repaintNeeded()), q, SLOT(_q_repaintItem())); }
void init() { Q_Q(QGraphicsSvgItem); renderer = new QSvgRenderer(q); QObject::connect(renderer, SIGNAL(repaintNeeded()), q, SLOT(_q_repaintItem())); q->setCacheMode(QGraphicsItem::DeviceCoordinateCache); q->setMaximumCacheSize(QSize(1024, 768)); }