[Webkit-unassigned] [Bug 34884] [Qt] QWebSettings::setUserStyleSheetUrl() does nothing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Mar 20 01:52:38 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=34884
--- Comment #6 from Lev Golod <levgolod at gmail.com> 2010-03-20 01:52:38 PST ---
#include <QtGui/QApplication>
#include <QWebView>
#include <QUrl>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWebView view;
QByteArray css("div { background-color: red }");
// that's works fine
//view.settings()->setUserStyleSheetUrl(QUrl("data:text/css;charset=utf-8;base64,"
+ css.toBase64()));
// doesn't work
view.settings()->setUserStyleSheetUrl(QUrl::fromLocalFile("d:/test.css"));
view.load(QUrl("http://qtsoftware.com/"));
view.show();
return a.exec();
}
It seems like
String KURL::fileSystemPath() const
returns "/d:/test.css" that QFileInfo can't understand.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list