from PyQt5.QtWebEngineWidgets import QWebEngineView
...
...
q = QWebEngineView()
q.setHtml('''<img border="0" height="200" src="E:/img.png" style="display: block; text-align: left;" width="600">''')
...
...
above is the only code I deal with webengineview. I want to show image within the webengineview, but it doesn't work, the outcome is a broken image icon.
when I open the html text with chrome browser, it actually works.
and then I set the img "src" attribute to be some other web image, it still works.
and it works if I set the src as "data:image/png;base64,xxxx" format.
I cannot figure out what happened