Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEnginePage and Console-Debugging question

QWebEnginePage and Console-Debugging question

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 430 Views
  • 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
    stvtdn
    wrote on last edited by
    #1

    Hello,

    I am using the QWebEnginePage within a QWebEngineView.

    When the page is loaded (http://localhost:8081 - a local WebApp) I will get all the console messages from Chrome.
    E.g. [2392:4952:0830/103609.026:INFO:CONSOLE(29)] "1567154151593", source: http://localhost:8001/ (29)

    "1567154151593" is a timestamp I wrote via javascript console.log(Date.now());

    I have also overwritten the javaScriptConsoleMessage function with an empty body. But this will take no effect. The messages still prints out to console. When I set a breakpoint into that function I will see the message that will be printed after exitting the function.

    I also tried to set the logging by QLoggingCategory::setFilterRules("js=false");
    But this takes no effect too.

    Is it even possible to disable the chrome console printing?

    Bye,
    Tom

    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