Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.svg.qgraphicssvgitem.cpp

//! [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]



Generated by  Doxygen 1.6.0   Back to index