Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78871

LocalStorage is not accessible inside WorkerScript

    XMLWordPrintable

Details

    • Windows

    Description

      I want to run a long time  DB query inside WorkerScript.

      The WS script is look like the following:

       

      .import LocalStorage 2.10 as LS 
      WorkerScript.onMessage = function(message) { 
      };
      

      But for some reason I get error: 

      ReferenceError: LocalStorage is not defined

      Running the LS query from a QML script works fine.

       

      Attachments

        1. qml_test.zip
          2 kB
        2. QTBUG-78871.tar.gz
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            folibis ruslan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes