summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_svg_qgraphicssvgitem.cpp
blob: f0846e64db0d4492029742678b837b0e7b801a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
//! [0]
QSvgRenderer *renderer = new QSvgRenderer(QLatin1String("SvgCardDeck.svg"));
QGraphicsSvgItem *black = new QGraphicsSvgItem();
QGraphicsSvgItem *red   = new QGraphicsSvgItem();

black->setSharedRenderer(renderer);
black->setElementId(QLatin1String("black_joker"));

red->setSharedRenderer(renderer);
red->setElementId(QLatin1String("red_joker"));
//! [0]