标题:求助,编译出错 'image' : undeclared identifier
作者:技术语言
日期:2013-11-07 11:25
内容:
错误:C2065: 'image' : undeclared identifier
各位大侠,一般这样的问题如何处理?速求!!!感谢万分!!
#1 [技术语言 11-07 11:28]
程序开头:
#include "mainwindow.h"#include "ui_mainwindow.h"#include #include #include
程序59行:QImage image = QImage((co nst uchar*)frame->imageData,frame->width,frame->height,QImage::Format_RGB888).rgbSwapped();
程序88行:ui->label->setPixmap(QPixmap::fromImage(image));
#2 [dbzhang800 11-08 09:02]
找本C++的书,打打基础就好了。
你的59和88行分属不同函数吧?