QTextEdit not displaying images
-
hello,
i am trying to display pictures in html inside a QTexEdit but they are not displaying, instead i see a small grey document icone!
i checked the image url , it is displaying in the web browser, so it is not the url, url is correct.
i set the html to QTextEdit with setHtml, the html is fully correct, something like :
<html><head></head><body><img scr="(image url here)" /></body></html>why it is not displaying the images ?
-
hello,
i am trying to display pictures in html inside a QTexEdit but they are not displaying, instead i see a small grey document icone!
i checked the image url , it is displaying in the web browser, so it is not the url, url is correct.
i set the html to QTextEdit with setHtml, the html is fully correct, something like :
<html><head></head><body><img scr="(image url here)" /></body></html>why it is not displaying the images ?
@Xena_o most likely image can't be loaded. HTML support is somewhat limited https://doc.qt.io/qt-5/richtext-html-subset.html
Is this image a local or remote file? I can't find it now in the docs but (and I might be wrong here, mind you) I think resources as images in this subset have to be local... -
@Xena_o most likely image can't be loaded. HTML support is somewhat limited https://doc.qt.io/qt-5/richtext-html-subset.html
Is this image a local or remote file? I can't find it now in the docs but (and I might be wrong here, mind you) I think resources as images in this subset have to be local...@artwaw said in QTextEdit not displaying images:
I think resources as images in this subset have to be local...
correct :)