On Thursday 31 March 2011 19:07:15 Hervé VENZAC wrote:
> Hello,
> 
>    When a QWebView tries to load a .html  in a resource  file
> it does not work.
> 
>     The resource (.qrc) is converted help to pyside-rcc.
> 
>    When I try to load the file (not as a resource) it is
> workink well. self.webView.load(QUrl('localisation.html'))
> 
>    But in the resource file :
> self.webView.load(QUrl(':/web/localisation.html'))  it is not
> working.
> 
> I also add a .png in the resource file to add an QIcon to my
> Window and it is working when using it :
> QIcon(':/picture/icon.png')
> 
> Probably I'm doing something wrong but I don't know what !
> 
> Thanks to help me.
> 
> Hervé Venzac
Did you import the *.rcc file? You need to do that for resouces 
to work as intended.

HTH,

OldAl.
-- 
Algis
http://akabaila.pcug.org.au/StructuralAnalysis.pdf
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to