[Qt-interest] Setting the Base Path Of The Page In A QWebView
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Wed Apr 8 01:29:56 CEST 2009
Raja wrote:
> Hi,
>
> I have a QWebView embedded in my application with the contentEditable
> property set to true, meaning it acts like a WYSIWYG editor.
>
> The relative paths to stylesheets and images are not loading the
> relevant files. Only absolute paths work.
>
> How do I set the base path of the page in the qwebview?
>
> Thanks in advance,
>
> With Regards,
> Raja Sekharan
Hi Raja,
Using QWebView.load or setUrl should work OK (and does for me). Using
QWebView.setContent or setHtml you have to pass the base URL as a parameter.
Hope that helps,
Tony
More information about the Qt-interest-old
mailing list