I need to load .svg icons to application. Do I have to use QSvgWidget class? Something similar to the following that I was using to load PNG files. I am using qt ver 4.2.3.

QPixmap pixmap;

QMap<QString, QPixmap> mapPix;


pixmap.load("PNG");
mapPix.insert("PNG",pixmap);


Thanks a Lot!!