1. Imlimage转换为QImage(2010.7.4):
CvCapture *camera = cvCreateCameraCapture(0);
IplImage *img = cvQueryFrame( camera );
QImage image((const uchar*)img->imageData, img->width, img->height, QImage::Format_RGB888);
ui->imglabel->setPixmap(QPixmap::fromImage(image));