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. QWebEngineView doesn't work with paid proxy.
Forum Updated to NodeBB v4.3 + New Features

QWebEngineView doesn't work with paid proxy.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt 5.11c++qwebengineview
5 Posts 2 Posters 3.2k 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.
  • A Offline
    A Offline
    arkadiusz97
    wrote on 10 Jun 2018, 16:24 last edited by arkadiusz97 6 Oct 2018, 16:41
    #1

    Hello, i want to create app, which uses QWebEngineView and paid proxy. This paid proxy works good with QNetworkAccessManager, but doesn't work with QWebEngineView. And with QWebEngineView work only free proxy.

    #include <QApplication>
    #include <QWebEngineView>
    #include <QNetworkProxy>
    #include <QUrl>
     
    int main(int argc, char *argv[])
    {
        QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
        QApplication app(argc, argv);
        QNetworkProxy::setApplicationProxy(QNetworkProxy(QNetworkProxy::HttpProxy, "58.11.76.4", 3128, "", ""));
        QWebEngineView view;
        view.setUrl(QUrl(QString("site")));
        view.resize(1024, 750);
        view.show();
     
        return app.exec();
    }
    
    1 Reply Last reply
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 11 Jun 2018, 07:29 last edited by
      #2

      Does the proxy require authentication ?Just see what is the error. Returned error could give you hint on what is the issue.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      A 1 Reply Last reply 11 Jun 2018, 09:08
      0
      • D dheerendra
        11 Jun 2018, 07:29

        Does the proxy require authentication ?Just see what is the error. Returned error could give you hint on what is the issue.

        A Offline
        A Offline
        arkadiusz97
        wrote on 11 Jun 2018, 09:08 last edited by
        #3

        @dheerendra said in QWebEngineView doesn't work with paid proxy.:

        Does the proxy require authentication ?Just see what is the error. Returned error could give you hint on what is the issue.

        Yes, i have to enter login and password. Login and password are correct and this proxy works with QNetworkAccessManager. Return code is 0(after close program). when i run app, window looks like this:
        alt text

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dheerendra
          Qt Champions 2022
          wrote on 11 Jun 2018, 11:20 last edited by
          #4

          Since authentication is required, did you catch the signal proxyAuthenticationRequired from webEngine page ?

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          A 1 Reply Last reply 11 Jun 2018, 15:56
          0
          • D dheerendra
            11 Jun 2018, 11:20

            Since authentication is required, did you catch the signal proxyAuthenticationRequired from webEngine page ?

            A Offline
            A Offline
            arkadiusz97
            wrote on 11 Jun 2018, 15:56 last edited by
            #5

            @dheerendra said in QWebEngineView doesn't work with paid proxy.:

            Since authentication is required, did you catch the signal proxyAuthenticationRequired from webEngine page ?

            I know now, that i have to use connect method to catch this signal, but i don't know, what do i have to do after.

            1 Reply Last reply
            0

            2/5

            11 Jun 2018, 07:29

            • Login

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