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.
QtWS25 Last Chance

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 last edited by arkadiusz97
    #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
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on 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
      0
      • dheerendraD dheerendra

        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 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
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on 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
          0
          • dheerendraD dheerendra

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

            A Offline
            A Offline
            arkadiusz97
            wrote on 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

            • Login

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