The database IO error occurs by creating multiple instances of QtwebengineView
Unsolved
QtWebEngine
-
I am creating a web browser using Qtwebengine.
However, when multiple instances of QWebEngineView are created, the console is displayed as "DataBase Io Error", causing a problem that the UI element of YouTube is broken or the Twitter does not open, and it cannot be used normally ...
Probably because the database directory is locked, but I want to share data files between instances because I need permanent cookies.I tryed this code:
QWebEngineProfile *profile = new QWebEngineProfile("MyAppName"); profile->setCachePath("MyCachePath"); profile->setPersistentStoragePath("MyDataPath"); QWebEnginePage *webpage = new QWebEnginePage(profile); webengineview->setPage(webpage);