Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. WorkerScript doesn't support importScripts()?

WorkerScript doesn't support importScripts()?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 3.1k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    fisher
    wrote on last edited by
    #1

    How to include javascript files in worker file?

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

      you can always use js in your code or import from another file http://doc.qt.nokia.com/4.7-snapshot/qdeclarativejavascript.html

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fisher
        wrote on last edited by
        #3

        But that would block the main thread. :(

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mohsen
          wrote on last edited by
          #4

          not bad to take a look at http://developer.qt.nokia.com/wiki/JavaScript_programmer

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fisher
            wrote on last edited by
            #5

            en...

            For import in qml file, I have to give a namespace to each .js file.

            But, all of js files should be modify for fit such architecture.
            The workload may be very big~~~~

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mohsen
              wrote on last edited by
              #6

              instead you've got a new experience! lol

              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