Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved iframe content not loading on QT 5.9.1

    QtWebEngine
    2
    4
    453
    Loading More Posts
    • 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
      ppmm last edited by

      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-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @ppmm last edited by

        @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 Reply Quote 0
        • P
          ppmm @raven-worx last edited by 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-worx 1 Reply Last reply Reply Quote 0
          • raven-worx
            raven-worx Moderators @ppmm last edited by raven-worx

            @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 Reply Quote 0
            • First post
              Last post