I'm trying to show images in a dialogue box (built using QT Creator and interacted with through my plugin). I have the images as a list of URLs, but can't figure out how to get them to display in the dialogue box. I thought perhaps I could just include an HTML image tag, but that just shows a file icon.

I wonder if I need to download them into a temp filestore first.


The goal is to have a QWebView (loadHtml method). In Qt Designer, the QWebView doesn't appear and as workaround, create a QWidget, and in the Python code, create an QWebView object and add it with the self.myQWidgetObject.layout().addWidget(self.myQWebViewObject) method.

Obviously, the html code to load is with the img html tag.

Not the answer you're looking for? Browse other questions tagged or ask your own question.