With OpenCV its just few lines of code (for RGB24 images). This will extract frame number frameNo from video and convert to QImage:
Qt Code:
  1. QString pathToVideo = ...
  2. CvCapture * capture = cvCaptureFromAVI( pathToVideo.toAscii(),constData() );
  3. cvSetCaptureProperty(capture, CV_CAP_PROP_POS_FRAMES, frameNo);
  4. IplImage * cvimg = cvQueryFrame(capture);
  5. if(cvimg){ // this will be NULL if you specify invalid frame index
  6. QImage temp = QImage((const uchar*)cvimg->imageData,cvimg->width,cvimg->height,QImage::Format_RGB888);
  7. QImage image = temp.rgbSwapped(); // opencv images are BGR
  8. }
  9. cvReleaseCapture(&capture);
To copy to clipboard, switch view to plain text mode 
To work with other image formats, you will have to do some direct pixel manipulation.