IplImage2QImage()函数见:iplImage to QImage
//显示图片
scene=new QGraphicsScene(this);//在构造函数里处理
voidALPR_demo::disp_iplimage(IplImage*iplimage,QGraphicsView*gv)
{
//转换
QImageqImage=opencv_tools.IplImage2QImage(iplimage);
if(!qImage.isNull()){
//调整大小
scene->clear();
scene->addPixmap(QPixmap::fromImage(qImage));
gv->setScene(scene);
}
}