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. QMessageBox And EvaluateJavascript function in QWebView
Forum Updated to NodeBB v4.3 + New Features

QMessageBox And EvaluateJavascript function in QWebView

Scheduled Pinned Locked Moved Unsolved Qt WebKit
1 Posts 1 Posters 603 Views 2 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.
  • S Offline
    S Offline
    Sidii
    wrote on last edited by
    #1

    Dear All,
    I am facing one strange issue. I am loading around 6-7 external JavaScript files using function:

    evaluateJavaScript()
    

    I am using For loop for loading each JS file one by one, when each file is loaded, i am using

    QMessageBox exec() 
    
    

    to show that this particular file is loaded successfully and once everything is done i am using Load function to show the HTML.
    Problem comes when i remove all the Message Box. When no message box appears then proper loading of JS file not done. it seems it is incomplete and web page is not rendered. By placing MessageBox it seems some time is given to the Web View to load JS. And once all the Message Box are removed then no time is given to the WebView and HTML is loaded immediately without loading the JS files.

    Kindly guide me how to proceed, I am struck at this last position.

    Thanks
    Sid

    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