I've problem with open local html file in QWebView widget. So, I do it like this:
QWebView *myWebView = new QWebView;
myWebView->load(QUrl("qrc:/index.htm"));
Sure, I have added index.htm in resources. But in QWebView there is white screen. I tried to open local file with Firefox, it's allright.
What should I do to fix it?
PS: htm-page uses js and css files, but I've also added them to resources too. PSS: Also, I tried to do it such way:
QFile res(":/index.htm");
res.open(QIODevice::ReadOnly|QIODevice::Text);
myWebView->setHtml(res.readAll());
but it doesn't help.