Qt WebEnigeView缓存的清除
QWebEngineProfile* engineProfile = webEngineView->page()->profile();
engineProfile->clearHttpCache();
QWebEngineCookieStore* cookie = engineProfile->cookieStore();
Cookie->deleteAllConkies();
Qstring cacePath = engineProfile->cachePath();
Qdir cachePathDie(cachePath);
If(cachePathDir.exists())
{
bool rlt=cachePathDie.rmdir(cachePath);
If(!rlt)
{
删除缓存目录失败!
}
}