Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. EvaluateJavaScript only works in the main thread
Servers for Qt installer are currently down

EvaluateJavaScript only works in the main thread

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 4 Posters 3.2k 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.
  • T Offline
    T Offline
    Tom C
    wrote on 10 Jan 2012, 14:51 last edited by
    #1

    is evaluatejavaScript only supposed to work in the main thread ?

    I use evaluateJavaScript in the main thread without any problem. Now i would like to use it in another thread but it doesn't work.

    Is there a workaround ?

    thx,
    Happy new year \o/

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KA51O
      wrote on 11 Jan 2012, 08:00 last edited by
      #2

      I think this has to do with the fact that you're not supposed to modify any GUI elements from within another thread then the main thread. I don't know if your problem is caused by evaluateJavaScript() itself or by the way your using it outside of the main thread.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rooney
        wrote on 19 Jan 2012, 14:44 last edited by
        #3

        I'm facing the same problem.
        I want to execute evaluateJavaScript in a separate thread as the execution time has major effect on the overall performance of my application. My JavaScripts takes about 500ms to finish and this can be noticed using the user interface in the meantime --> that is really annoying!!!

        Any ideas to solve that problem?

        Regards,
        Rooney

        1 Reply Last reply
        0
        • M Offline
          M Offline
          ManuelL
          wrote on 8 Feb 2012, 10:23 last edited by
          #4

          It's only my strange app or in Qt 4.7 evaluateJavascript from a non.main thread was working?

          It should be of very help to have a nice and pretty workaround...

          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