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. Multiple QWebEngine, keep the same session
Qt 6.11 is out! See what's new in the release blog

Multiple QWebEngine, keep the same session

Scheduled Pinned Locked Moved Solved QtWebEngine
2 Posts 1 Posters 1.1k 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.
  • M Offline
    M Offline
    maximus
    wrote on last edited by
    #1

    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


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximus
      wrote on last edited by
      #2

      Solution found

      use this global variable for all your QWebEnginePage

      QWebEngineProfile *profile = QWebEngineProfile::defaultProfile();


      Free Indoor Cycling Software - https://maximumtrainer.com

      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