I receive raw data of an image via socket. What I want to do is to create a texture with this image raw data and render the texture in the widget. I do not know what functions to use, could anyone give me some help here please.
When you say “raw” do you mean 4 bytes per pixel (RGBA) or (BGRA) or 3 bytes per pixel (RGB) or 4 floats per pixel?
RGB 3 bytes per pixel. How come? what that makes the difference with one additional byte?