Sorry to be wasting bandwidth here. I uncovered the answer via some extended searching in these forums.
ui.
textBrowser->setSource
(QUrl("sample.htm"));
ui.textBrowser->setSource(QUrl("sample.htm"));
To copy to clipboard, switch view to plain text mode
One problem however, I have a graphic file in the same directory as "sample.htm" - "icon5.gif". [WindowsXP, Visual Studio 2005]
The setSrouce() call finds sample.htm, however, the textBrowser loads a "missing" graphic instead of the GIF file I referenced.
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 8.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<h1>Introduction</h1>
<p>This is the first paragraph</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<p>
<img src="icon5.gif" />
</p>
</BODY>
</HTML>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 8.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<h1>Introduction</h1>
<p>This is the first paragraph</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<p>
<img src="icon5.gif" />
</p>
</BODY>
</HTML>
To copy to clipboard, switch view to plain text mode
Why can't the textBrowser find and display the graphic?
Thanks,
Jeff
Bookmarks