When I use the QWebView to load a page named "Index" without html suffix, It will crash. so I rename the Index to Index.html, then load It,It's OK. I think maybe It's a bug of QtWebkit. code: #include <QtGui/QApplication> #include <QtWebKit/QWebView> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWebView webView; QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, false); QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, false); webView.setUrl(QUrl("/home/tangke/test")); //crash // webView.setUrl(QUrl("/home/tangke/test.html")); //ok webView.show(); return app.exec(); }
I cannot reproduce this on current 4.7 + WebKit trunk. Can you get a gdb or valgrind backtrace for the crash?
I cannot reproduce it. If the problem still persist for you please provide a better detailed testecase or a crash backtrace.