コード例 #1
0
 void init()
 {
     Q_Q(QGraphicsSvgItem);
     renderer = new QSvgRenderer(q);
     QObject::connect(renderer, SIGNAL(repaintNeeded()),
                      q, SLOT(_q_repaintItem()));
 }
コード例 #2
0
 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));
 }