PDA

View Full Version : Image not displaying in QTextBrowser in a not current tab.



crisp
10th March 2009, 00:55
Hi

I think my problem is probably quite simple. Sometimes, I require an image to be presented in a QTextBrowser, which is itself located in a tab. When the function that makes the append is called, the image is displayed if the current tab is open, but if it's not, then there's just a default blank image (the same one as when you try to display a remote image).

I've included an image here to help illustrate my terrible explanation.

http://www.driversgb.com/Qt/image_tab.png

The first 'blank' image is when the url to the cat was given while the 'User Info' tab was displayed, the second was given when I clicked on the 'Images' tab. Obviously, I'd like images to be displayed regardless of which tab is currently selected.

Any ideas would be appreciated! Cheers.