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. Console log ???

Console log ???

Scheduled Pinned Locked Moved Solved QtWebEngine
6 Posts 3 Posters 2.2k 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.
  • elicatE Offline
    elicatE Offline
    elicat
    wrote on last edited by
    #1

    Hello is possible use console.log into WebEngine ? Mi rigth click don't work.
    I have setting this in main program:

    bool ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --ignore-gpu-blacklist --enable-gpu-rasterization --use-gl=egl ");
    ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --ignore-gpu-blacklist --enable-gpu-rasterization --enable-oop-rasterization --use-angle --allow-file-access-from-files");
    ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --enable-logging --log-level=3 --enable-blink-features=ShadowDOMV0,CustomElementsV0");
    ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --auto-open-devtools-for-tabs");
    
    

    Also CMD12 don' t work

    Thanks for your help

    Saluti, Gianfranco Elicat

    eyllanescE 1 Reply Last reply
    0
    • elicatE elicat

      Hello is possible use console.log into WebEngine ? Mi rigth click don't work.
      I have setting this in main program:

      bool ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --ignore-gpu-blacklist --enable-gpu-rasterization --use-gl=egl ");
      ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --ignore-gpu-blacklist --enable-gpu-rasterization --enable-oop-rasterization --use-angle --allow-file-access-from-files");
      ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --enable-logging --log-level=3 --enable-blink-features=ShadowDOMV0,CustomElementsV0");
      ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --auto-open-devtools-for-tabs");
      
      

      Also CMD12 don' t work

      Thanks for your help

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by eyllanesc
      #2

      @elicat What do you mean by using console.log? You mean inspect the page (devtools)?

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      0
      • elicatE Offline
        elicatE Offline
        elicat
        wrote on last edited by
        #3

        yes I nedd verify value after call method c#

        Saluti, Gianfranco Elicat

        raven-worxR 1 Reply Last reply
        0
        • elicatE elicat

          yes I nedd verify value after call method c#

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @elicat
          Remotely (from PC): https://doc.qt.io/qt-5/qtwebengine-debugging.html#qt-webengine-developer-tools

          In Code: https://doc.qt.io/qt-5/qwebenginepage.html#javaScriptConsoleMessage
          In QML: https://doc.qt.io/qt-5/qml-qtwebengine-webengineview.html#javaScriptConsoleMessage-signal

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • elicatE Offline
            elicatE Offline
            elicat
            wrote on last edited by elicat
            #5

            Thanks but I need check value into more point of my code
            javascript (connect with signal from code C++) with action

            console.log("xxx" + variable). 
            

            I need put into specific point for check process code.

            I have insert this directive into main program

            ret = qputenv("QTWEBENGINE_REMOTE_DEBUGGING", "0.0.0.0");
            

            But I didn't see any difference.
            To tell the truth, I didn't understand which door I have to indicate.
            Where am I wrong?

            Saluti, Gianfranco Elicat

            1 Reply Last reply
            0
            • elicatE Offline
              elicatE Offline
              elicat
              wrote on last edited by
              #6

              I have solve width into main only for debug

              
              #ifdef QT_DEBUG
              bool ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --remote-debugging-port=91");
              #endif
              

              Where 91 is any port you want.
              After open browser and go link http://127.0.0.1:91
              So you can you tools developer

              Saluti, Gianfranco Elicat

              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