PDA

View Full Version : Can't include QtSvg



been_1990
13th February 2010, 14:42
I get this error when trying to include QtSvgItem:

error: QGraphicsSvgItem: No such file or directory

I don't know the reason for that as the files are present and when I include it's path:

#include "C:\\Qt\\2009.05\\qt\\include\\QtSvg\\QGraphicsSvgI tem"
I get the following error:


undefined reference to `_imp___ZN16QGraphicsSvgItemC1ERK7QStringP13QGraph icsItem'

QGraphicsSvgItem *clk_bg;
QString clk;
// at -> clk_bg = new QGraphicsSvgItem(clk)

faldzip
13th February 2010, 15:42
add to you .pro file:


QT += svg