Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5.8, 6.8.2
-
Windows 10 22H2
Description
Code
int main(int argc, char* argv[]) { QApplication app(argc, argv); QWebEngineProfile p("MyBrowser"); p.setHttpCacheType(QWebEngineProfile::DiskHttpCache); p.setCachePath("D:/MyBrowser"); p.setPersistentStoragePath("D:/MyBrowser"); QWebEngineView view(&p); view.setUrl(QUrl{"chrome://qt"}); view.show(); app.exec(); }
Outcomes
The following folder is created, but it shouldn't:
C:\Users\<USERNAME>\AppData\Roaming\<PROJECTNAME>\QtWebEngine\MyBrowser
Workaround
Manually delete the folder after the QWebEngineView opens
Attachments
Issue Links
- duplicates
-
QTBUG-129620 Instantiating `QWebEngineProfile` creates an empty data directory
-
- Reported
-