Post a one file example program that crashes on your system and tell us which platform you are targeting and perhaps someone else can reproduce the crash. The quick throw-together below doesn't crash for me on Linux (it does whinge about missing plugins though).
#include <QtGui>
#include <QtWebKit>
#include <QDebug>
int main(int argc, char *argv[])
{
qApp->setApplicationName("test");
// These are your settings. Safe to have them all point to the same place?
QWebSettings *s = QWebSettings::globalSettings();
s->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
s->setOfflineStoragePath(qApp->applicationDirPath() + "/cache/" );
s->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true);
s->setOfflineWebApplicationCachePath(qApp->applicationDirPath() + "/cache/");
s->setAttribute(QWebSettings::LocalStorageEnabled, true);
s->setLocalStoragePath(qApp->applicationDirPath() + "/cache/");
QWebView wv;
wv.show();
QUrl url
("http://moztw.org/demo/audioplayer/");
wv.load(url);
return app.exec();
}
#include <QtGui>
#include <QtWebKit>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qApp->setApplicationName("test");
// These are your settings. Safe to have them all point to the same place?
QWebSettings *s = QWebSettings::globalSettings();
s->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
s->setOfflineStoragePath(qApp->applicationDirPath() + "/cache/" );
s->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true);
s->setOfflineWebApplicationCachePath(qApp->applicationDirPath() + "/cache/");
s->setAttribute(QWebSettings::LocalStorageEnabled, true);
s->setLocalStoragePath(qApp->applicationDirPath() + "/cache/");
QWebView wv;
wv.show();
QUrl url("http://moztw.org/demo/audioplayer/");
wv.load(url);
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks