WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
30395
[Qt] QtWebKit doesn't read content from qrc files
https://bugs.webkit.org/show_bug.cgi?id=30395
Summary
[Qt] QtWebKit doesn't read content from qrc files
Bernhard Rosenkraenzer
Reported
2009-10-15 10:41:34 PDT
Created
attachment 41231
[details]
testcase Trying to point something rendered with QtWebKit at a file in a qrc doesn't work -- the file is never shown.
Attachments
testcase
(2.75 KB, application/octet-stream)
2009-10-15 10:41 PDT
,
Bernhard Rosenkraenzer
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Yael
Comment 1
2009-10-30 14:43:48 PDT
I am not sure if this should work or not, but if you put your html in the qrc file as well, it will work. That's how inspector resources are loaded.
Bernhard Rosenkraenzer
Comment 2
2009-10-30 14:51:32 PDT
In the application the testcase was extracted from, putting the html into the qrc isn't feasible as the html is generated on the fly. I wonder if specifing ":" as the 3rd parameter of setContent() will do the trick as well... (but then it would probably break file:/ references?)
Yael
Comment 3
2009-10-30 14:57:59 PDT
(In reply to
comment #2
)
> In the application the testcase was extracted from, putting the html into the > qrc isn't feasible as the html is generated on the fly. > I wonder if specifing ":" as the 3rd parameter of setContent() will do the > trick as well... (but then it would probably break file:/ references?)
Then another suggestion would be to spell out "qrc:" in the URL. I am not sure if QtWebKit is supposed to interpret ":" as "qrc:" .
Simon Hausmann
Comment 4
2009-11-18 00:50:34 PST
:/test.png is not a valid URL in WebKit to access Qt resources. qrc is the scheme we use. So the testcase works just fine after the following two modifications: 1) :/ is replaced with qrc:/ 2) test.html references test.png, but it should reference tux.png
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug