Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. The database IO error occurs by creating multiple instances of QtwebengineView
Forum Updated to NodeBB v4.3 + New Features

The database IO error occurs by creating multiple instances of QtwebengineView

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 154 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • taaDeveloperT Offline
    taaDeveloperT Offline
    taaDeveloper
    wrote on last edited by
    #1

    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);
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved