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. QNetworkProxy and QWbView - doesn't load pages
Forum Updated to NodeBB v4.3 + New Features

QNetworkProxy and QWbView - doesn't load pages

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.5k 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.
  • UndeadBlowU Offline
    UndeadBlowU Offline
    UndeadBlow
    wrote on last edited by
    #1

    Hello. I'm trying to use QNetworkProxy with QWebView in two different ways (below), but after proxy is set pages not loads... Proxy servers I took from http://proxylist.hidemyass.com/

    First way:
    @
    QNetworkProxy proxy;
    proxy.setType(QNetworkProxy::HttpProxy);
    proxy.setHostName("114.255.183.163");
    proxy.setPort(8080);
    QNetworkProxy::setApplicationProxy(proxy);
    ui->webView->load(QUrl("http://2ip.ru/"));@
    Second way:
    @
    QNetworkProxy proxy;
    proxy.setType(QNetworkProxy::HttpProxy);
    proxy.setHostName("178.249.14.12");
    proxy.setPort(80);
    ui->webView->page()->networkAccessManager()->setProxy(proxy);
    ui->webView->load(QUrl("http://2ip.ru/"));@
    What is going on and how can I solve it?

    P.S. Sometimes it loads but veryyyyyy slow. I tried very many serves. I need to change proxy dynamically but seems that it don't wanna work even when preset in constructor.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ckakman
      wrote on last edited by
      #2

      Are you sure the free proxy servers you have found from a web site called http://proxylist.hidemyass.com/ are working properly?

      There was an article about free proxies on HN recently: https://blog.haschek.at/post/fd9bc You may find it interesting.

      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