Qt Forum

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

    Call for Presentations - Qt World Summit

    Sub-frames access

    QtWebEngine
    3
    7
    1347
    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.
    • Y
      yage last edited by

      Hello everybody

      Documentation says that it is impossible to gain access to sub-frames iframes.

      https://wiki.qt.io/Porting_from_QtWebKit_to_QtWebEngine

      I don't know the others, but my projects are actively using this opportunity and ban access to it sounds at least strange. I just can't use QWebEngine in their projects.

      Any workaround please

      1 Reply Last reply Reply Quote 1
      • N
        NoRulez last edited by

        I need this too. I'm also missing some functionality to iterate over web form elements, determine frame name, ...

        So for me the QtWebEngine is not complete and has many bugs

        1 Reply Last reply Reply Quote 1
        • K
          knt261 last edited by

          Not sure if your problem is the same as mine, but try to pass the "--disable-web-security" argument to the QApplication object in your main.cpp.

          Y N 2 Replies Last reply Reply Quote 0
          • Y
            yage @knt261 last edited by

            @knt261 Thank you very much! This permits access to the contents of the iframe from javascript

            N 1 Reply Last reply Reply Quote 0
            • N
              NoRulez @knt261 last edited by

              @knt261 how can i access sub frames with this argument,?

              1 Reply Last reply Reply Quote 0
              • N
                NoRulez @yage last edited by

                @yage how did you solve it?

                Y 1 Reply Last reply Reply Quote 0
                • Y
                  yage @NoRulez last edited by yage

                  js jquery example:
                  $("iframe").contents().find("...")

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post