Qt Code:
  1. #include <QtGui>
  2. int main (int argc, char **argv)
  3. {
  4.  
  5. QApplication app(argc,argv);
  6. QLabel *lab=new QLabel(0,Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
  7. QPixmap *p=new QPixmap("plane.jpg");
  8. QPixmap p1(p->scaled ( lab->width(),lab->height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation ));
  9. lab->setPixmap(p1);
  10. lab->show();
  11. lab->adjustSize();
  12. return app.exec();
  13.  
  14. }
To copy to clipboard, switch view to plain text mode 
I hope it helps also.