Qt-interest Archive, December 2006
QGraphicsSvgItem question
Message 1 in thread
Im trying to create a QGraphicsSvgItem onto my
QGraphicsView/QGraphicsScene. I thought it was simple,
and maybe it is and Im missing something small.
In my QGraphicsView class I say:
QGraphicsSvgItem *svg = new QGraphicsSvgItem("./file.svg");
svg->show();
I looked at the QSvgRenderer class and wasnt sure I needed it
or not?
Im trying to use QGraphicsSvgItem as a replacement for
QGraphicsRectItem. Im allowing the user to create their own
SVG's instead now.
Thanks for your help,
Jeff
--
[ signature omitted ]
Message 2 in thread
Jeff Lacki wrote:
> Im trying to create a QGraphicsSvgItem onto my
> QGraphicsView/QGraphicsScene. I thought it was simple,
> and maybe it is and Im missing something small.
>
Something simple? Did you remember to add the QGraphicsSvgItem to the
QGraphicsScene?
--Dave
--
[ signature omitted ]