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. iframe content not loading on QT 5.9.1
QtWS25 Last Chance

iframe content not loading on QT 5.9.1

Scheduled Pinned Locked Moved Unsolved QtWebEngine
4 Posts 2 Posters 982 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.
  • P Offline
    P Offline
    ppmm
    wrote on last edited by
    #1

    Hi I am developing an application which integrates C++, python and Qt but it needs to run in two versions, the first one is more updated and uses QT 5.12 and is working properly but in the "older" version QT 5.9.1 the iframe in the qwebengine page is not showing up.

    I am using a tensorboard to generate the data and start a webpage that I can perfectly access through my browser, however when I am embedding it using qwebengine, the header of the page loads but the Iframe does not. Different from the Qt 5.12 which works like a charm with the same set of functions.

    I believe it has some connection with the qwebengine trying to access the files in my computer location however I have no idea how to fix that. Any clue?

    raven-worxR 1 Reply Last reply
    0
    • P ppmm

      Hi I am developing an application which integrates C++, python and Qt but it needs to run in two versions, the first one is more updated and uses QT 5.12 and is working properly but in the "older" version QT 5.9.1 the iframe in the qwebengine page is not showing up.

      I am using a tensorboard to generate the data and start a webpage that I can perfectly access through my browser, however when I am embedding it using qwebengine, the header of the page loads but the Iframe does not. Different from the Qt 5.12 which works like a charm with the same set of functions.

      I believe it has some connection with the qwebengine trying to access the files in my computer location however I have no idea how to fix that. Any clue?

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

      @ppmm said in iframe content not loading on QT 5.9.1:

      I am using a tensorboard to generate the data and start a webpage that I can perfectly access through my browser, however when I am embedding it using qwebengine, the header of the page loads but the Iframe does not. Different from the Qt 5.12 which works like a charm with the same set of functions.

      Since the Chromium version is updated along with Qt versions it might be a bug.

      Try to inspect what happens on the webpage using the dev-tools.
      Set the parameter or env-variable and connect with a Desktop Chrome Browser to the specified port.
      Check for JS errors and console output.

      --- 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

      P 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @ppmm said in iframe content not loading on QT 5.9.1:

        I am using a tensorboard to generate the data and start a webpage that I can perfectly access through my browser, however when I am embedding it using qwebengine, the header of the page loads but the Iframe does not. Different from the Qt 5.12 which works like a charm with the same set of functions.

        Since the Chromium version is updated along with Qt versions it might be a bug.

        Try to inspect what happens on the webpage using the dev-tools.
        Set the parameter or env-variable and connect with a Desktop Chrome Browser to the specified port.
        Check for JS errors and console output.

        P Offline
        P Offline
        ppmm
        wrote on last edited by ppmm
        #3

        @raven-worx Hi, thanks for the answer.

        As I use the Qt inside a C++ build I am not sure how to pass arguments as

        --remote-debugging-port=<port_number>
        

        the only way I could pass it was using the

        qputenv("QTWEBENGINE_REMOTE_DEBUGGING ", "1050")
        

        I was able to open the debug page and selecte the inspectable page from the tensorboard, but it was entirely blank.

        I considered that passing the argument

        --disable-web-security
        

        could be the solution but I have no clue how to pass the arguments if I do not call my Qt directly but it is build inside C++ .dll, is there any guidance in how to pass this kind of argument for Qt being called in c++ ?

        raven-worxR 1 Reply Last reply
        0
        • P ppmm

          @raven-worx Hi, thanks for the answer.

          As I use the Qt inside a C++ build I am not sure how to pass arguments as

          --remote-debugging-port=<port_number>
          

          the only way I could pass it was using the

          qputenv("QTWEBENGINE_REMOTE_DEBUGGING ", "1050")
          

          I was able to open the debug page and selecte the inspectable page from the tensorboard, but it was entirely blank.

          I considered that passing the argument

          --disable-web-security
          

          could be the solution but I have no clue how to pass the arguments if I do not call my Qt directly but it is build inside C++ .dll, is there any guidance in how to pass this kind of argument for Qt being called in c++ ?

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

          @ppmm
          any other webengine flags can also be set via an env variable, also described on the link i've posted...

          Beside that: you can pass these parameters as simple arguments to the calling application. QtWebEngine gets the parameters from the QApplication instance (which should anyway get the parameters in the main() function normally)

          Regarding the blank page:
          What Desktop Chrome version are you using?
          Since v80 onwards you may want to start an instance with the following parameter:
          chrome.exe --enable-blink-features=ShadowDOMV0,CustomElementsV0

          Hint: If you try to debug from a different machine you may rather want to set it to:
          QTWEBENGINE_REMOTE_DEBUGGING=0.0.0.0:1050

          --- 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

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved