ok, there were indeed some problems with the resource file.
Nevertheless I can't initialize the svg image directly:
QGraphicsSvgItem item(":/standard.svg");
To copy to clipboard, switch view to plain text mode
no error and the place for the image is reserved, but I can't see the image.
It does work if I change the code to:
item->setSharedRenderer(renderer);
scene.addItem(item);
QSvgRenderer *renderer = new QSvgRenderer(QLatin1String(":boards/standard.svg"));
QGraphicsSvgItem *item = new QGraphicsSvgItem();
item->setSharedRenderer(renderer);
scene.addItem(item);
To copy to clipboard, switch view to plain text mode
So do I really have to it this way? Can't I directly load the svg image?
Thanks for your help
Bookmarks