如何使用 Qt 从缓冲区加载图像?
因此输入:
QBuffer* buffer = new QBuffer(this->Conex);
QImage* image = new QImage ();
image->loadFromData (buffer->buffer());
这对我不起作用。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果缓冲区包含原始像素数据,您可能需要使用此构造函数指定宽度、高度和 bpp:
编辑:
这就是您使用此构造函数的方式:
If the buffer contains raw pixel data, you might want to specify the width, height and bpp using this constructor:
Edit:
That's how you would use this constructor: