Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView issue

QWebView issue

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.8k 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.
  • D Offline
    D Offline
    dolevo
    wrote on last edited by
    #1

    Hi,

    My problem is very simple actually but I couldn't figure out where the problem exactly is.
    Please download my minimal code from the following link: "link to dropbox":https://www.dropbox.com/s/4rooelcjbcl9qus/minimal_webview.zip

    The code consist of a QWebView and it is loaded to a target webpage on Load. So simple.
    The problem is, when the page is loaded, please try to click on the orange button on the webpage which has a text "Jouw zoekertje, GRATIS PLAATSEN". You will see that QWebView loads nothing for this link. However, if you do the same action on your regular browser, it works and it loads.

    I am guessing that the website excepts something from browser (QWebView) but it returns nothing and I need to implement it. But don't know what it is.

    I'd greatly appreciate your comments on the issue.
    Thanks in advance,

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dolevo
      wrote on last edited by
      #2

      What could a website wait for to be loaded successfully? I am thinking of enabling cookies and I did so. But didn't seem working still. Any other things needs to be implemented? Please give me some hints to get this over.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dolevo
        wrote on last edited by
        #3

        All,
        Could anyone please tell me how I can trace request headers when I click on a link on a QWebView? I can see the response headers by receiving finished signal from QNetworkAccessManager but couldn't find the requested ones. I want to compare what is requested and compare it with the ones I receive from Chrome.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dolevo
          wrote on last edited by
          #4

          Guys, could anyone tell me why I got no comment on my question? I am quite sure that many of you have already worked with QWebView and perhaps encountered a similar question.

          I tried the same thing with C# WebBrowser element and it worked perfect there. When the page is loaded, I clicked on the link that I mentioned in my first post and it loaded it. Could anyone help me to analyze what the problem is with QWebView?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alharith
            wrote on last edited by
            #5

            hello,

            I tried your code on qt 5.3.1, and it works but do you have a proxy on your network?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dmather
              wrote on last edited by
              #6

              You might want to tell people what version of Qt you are using, this won't even compile in Qt 5.3.x because QWebView is part of webkitwidgets.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                alharith
                wrote on last edited by
                #7

                it complies fine with qt 5.3.1 thats what I used to compile it, you just need to add webkitwidgets to the .pro file

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dolevo
                  wrote on last edited by
                  #8

                  Thanks guys. I use 4.8. I will try with 5.3 then.

                  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