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. Console.log
Forum Updated to NodeBB v4.3 + New Features

Console.log

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 3 Posters 4.0k 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.
  • C Offline
    C Offline
    chrisdarl
    wrote on last edited by
    #1

    Apologies if this has been covered before, I have searched before asking...

    Is there any way that I can view console.log output from a JavaScript file linked in via a HTML document. Or is there a better way that I should be doing this?

    Thanks
    Chris

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peppy
      wrote on last edited by
      #2

      Very good question, have you Googled something?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chrisdarl
        wrote on last edited by
        #3

        I have Googled and searched the forum, with no luck

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #4

          Subclass QWebPage and override "javaScriptConsoleMessage":http://doc-snapshot.qt-project.org/4.8/qwebpage.html#javaScriptConsoleMessage , set your subclassed QWebPage to the QWebView instance and you will be able to capture console.log messages in javaScriptConsoleMessage function in your subclassed QWebPage.

          God is Real unless explicitly declared as Integer.

          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