Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Bind WebKit to another interface
Forum Updated to NodeBB v4.3 + New Features

Bind WebKit to another interface

Scheduled Pinned Locked Moved Qt WebKit
8 Posts 2 Posters 4.3k Views 1 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.
  • K Offline
    K Offline
    Koshak01
    wrote on 22 Dec 2010, 22:54 last edited by
    #1

    i can change UserAgent!

    i look doc, and cant found info how i can change interface when i load web page

    foothold.ru - django/python web develop

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on 22 Dec 2010, 23:04 last edited by
      #2

      Hi :) May be you try receive content with QTcpSocket and set it to QWebView with method setContent?

      --
      Vasiliy

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Koshak01
        wrote on 22 Dec 2010, 23:08 last edited by
        #3

        can you get me one example ?

        foothold.ru - django/python web develop

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vsorokin
          wrote on 22 Dec 2010, 23:24 last edited by
          #4

          See "here":http://doc.qt.nokia.com/4.7-snapshot/network-fortuneclient.html example how receive data from QTcpSocket
          See "here":http://www.qtcentre.org/threads/30737-Binding-QTcpSocket-to-a-specific-network-interface example how bind interface
          And see "here":http://doc.qt.nokia.com/latest/qwebview.html#setContent declaration of setContent method.

          --
          Vasiliy

          1 Reply Last reply
          0
          • K Offline
            K Offline
            Koshak01
            wrote on 23 Dec 2010, 11:21 last edited by
            #5

            [quote author="Vass" date="1293060293"]See "here":http://doc.qt.nokia.com/4.7-snapshot/network-fortuneclient.html example how receive data from QTcpSocket
            See "here":http://www.qtcentre.org/threads/30737-Binding-QTcpSocket-to-a-specific-network-interface example how bind interface
            And see "here":http://doc.qt.nokia.com/latest/qwebview.html#setContent declaration of setContent method. [/quote]

            My friend, this is not good, becouse only first page loaded by ip!, when i setContent or setHtml, another pages download by default IP (((

            I need overload function in QWebView.

            can you help ?

            foothold.ru - django/python web develop

            1 Reply Last reply
            0
            • K Offline
              K Offline
              Koshak01
              wrote on 23 Dec 2010, 11:25 last edited by
              #6
              1. i set 188.143.236.68
              2. 188.143.236.188 - default ip - then is http://foothold.ru - its I )

              look log for foothold.ru access :

              ------------ load by you method :

              1. 188.143.236.68 - - [23/Dec/2010:13:28:57 +0300] "GET / HTTP/1.1" 200 6326 "-" "My User Agent 0"
                ------------ after set content or set html :
              2. 188.143.236.188 - - [23/Dec/2010:13:18:30 +0300] "GET /css/foothold.ru.css HTTP/1.1" 200 2995 "http://foothold.ru/" "My User Agent in WEBPAGE"

              ip default ((((

              foothold.ru - django/python web develop

              1 Reply Last reply
              0
              • K Offline
                K Offline
                Koshak01
                wrote on 24 Dec 2010, 18:55 last edited by
                #7

                any answers ?

                foothold.ru - django/python web develop

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vsorokin
                  wrote on 24 Dec 2010, 20:59 last edited by
                  #8

                  Ok, you need get access to socket of QNetworkAccessManager class. Then you can set your networkAccessManager for QWebPage. But I not have any ideas, how you can do it.

                  --
                  Vasiliy

                  1 Reply Last reply
                  0

                  2/8

                  22 Dec 2010, 23:04

                  6 unread
                  • Login

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