Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Multiple QWebEngine, keep the same session



  • I would like my QWebEngine to keep the same session data (cookie, etc.)

    I tried using the same QWebEngineProfile and setting it to my QWebEnginePage, but that doesn't seem to work.
    Is there example somewhere that I can refer to?
    Thanks



  • Solution found

    use this global variable for all your QWebEnginePage

    QWebEngineProfile *profile = QWebEngineProfile::defaultProfile();


Log in to reply