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. Accessing local storage on a web page
Forum Update on Monday, May 27th 2025

Accessing local storage on a web page

Scheduled Pinned Locked Moved Solved QtWebEngine
3 Posts 2 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.
  • T Offline
    T Offline
    TonyN
    wrote on last edited by
    #1

    I am using WebEngineView. The program is very simple, it's just the example from the Qt website. Now I want to access the local storage of a website. How do I do that? From my endless search, it seems I cannot do that.

    1 Reply Last reply
    1
    • T Offline
      T Offline
      TonyN
      wrote on last edited by
      #2

      I figured out a way. I just call a Javascript on the WebEngineView to localStorage.setItem(), and that is it! :~)

      B 1 Reply Last reply
      1
      • T TonyN

        I figured out a way. I just call a Javascript on the WebEngineView to localStorage.setItem(), and that is it! :~)

        B Offline
        B Offline
        Belfix
        wrote on last edited by
        #3

        @TonyN Can you provide a working code to do that?

        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