1 QImage(uchar * data, int width, int height, Format format) 2 3 QImage(const uchar * data, int width, int height, Format format) 4 5 QImage(uchar * data, int width, int height, int bytesPerLine, Format format) 6 7 QImage(const uchar * data, int width, int height, int bytesPerLine, Format format)
1 QImage Image; 2 Image = QImage(uchar * data, width, height, QImage::Format_RGB888);
从构造函数可以得知只要知道:
原文:https://www.cnblogs.com/ybqjymy/p/12298176.html