// First we create the objects to hold the icon and background image
KIcon icon("document");
Plasma::Svg* background = new Plasma::Svg("widgets/background",this);
// Tell the Plasma/Svg object to use the whole image,
// instead of parts of it.
background->setContentType(Plasma::Svg::SingleImage);

// Now we draw the applet, starting with the background
background->resize(boundingRect().width(),boundingRect().height());
background->paint(p,boundingRect().left(),boundingRect().top());