Looking at many methods and a lot of searching hasn't provided me with what i want. All my attempts include either a tiled image or no image with either a QPainter error or no error. Here's the code that produces no error, but also no image, that i currently have implemented:
Qt Code:
  1. QString file("/usr/share/wallpapers/default_blue.jpg");
  2. int w = QApplication::desktop()->width();
  3. int h = QApplication::desktop()->height();
  4.  
  5. desk *desktop = new desk(this); // QGraphicsView
  6. desktop->setFrameStyle(QFrame::NoFrame);
  7. desktop->setScene(new winManager(this));
  8.  
  9. QPixmap pic(file);
  10. pic = pic.scaled(w, h);
  11. QPainter painter(&pic);
  12. desktop->render(&painter);
To copy to clipboard, switch view to plain text mode 
I'm not sure what i'm doing wrong, but the solution is most likely simple--assuming there is one.