Ok, I have got it! I used to have a CSS file which included another CSS file:
@import url("../../res/common.css");
@import url("../../res/common.css");
To copy to clipboard, switch view to plain text mode
It used to work fine with the version of QtWebKit in Qt 4.7.4, but not with the one in Qt 4.8.0. It would seem that QtWebKit doesn’t like the use of relative paths in CSS import files anymore (?). So, instead, I had to use:
@import url("/doc/res/common.css");
@import url("/doc/res/common.css");
To copy to clipboard, switch view to plain text mode
with doc being the virtual folder in my Qt help file. Otherwise, I want to be able to use my CSS file both within a web page and a Qt help page, so I now have:
@import url("../../res/common.css");
@import url("/doc/res/common.css");
@import url("../../res/common.css");
@import url("/doc/res/common.css");
To copy to clipboard, switch view to plain text mode
With the first import being required to get things to work on a web page and the second import on a Qt help page. I really wish I didn't have to do that, but...
Bookmarks