#include #include #include void qt_buffer2image(unsigned char* buffer, std::string filename, unsigned int x_size, unsigned int y_size) { //x_size = 256; //y_size = 256; //create an image object QImage image(x_size, y_size, QImage::Format_RGB32); if(image.isNull()) { std::cout<<"Error creating QImage."<