Display /provide QImage or pixel map in WebEngine view (from C++ to HTML).
I want to display image (for example QImage) or any kind of pixel map from C++ to WebEngine's html.
How to do this?
For example, in my html (displayed by WebEngineView) there is:
<img src="???" id="myImg">
And now I want to be able to provide this image from C++ code. So I will generate this image (with some algorithm) and I want to display it in web browser.
this is example 1x1 pixel black dot image you'll have to substitute with your own image data base64 encoded and of course change image format if you're not using png to data:image/jpg(whatever)