Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Unable to open a webpage which has polymer in Qt 5.5

    General and Desktop
    2
    2
    4300
    Loading More Posts
    • 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.
    • R
      Ravimettu last edited by SGaist

      Hi Everyone,
      Iam new to Qt 5.5. Iam simple application to open a web page which consists of polymer but iam unable to open it.

      I dont know whether my proxy is blocking or my code is wrong. can some one help me out about this.

      Here is my code

      MainWindow::MainWindow(QWidget *parent) :
          QMainWindow(parent),
          ui(new Ui::MainWindow)
      {
          ui->setupUi(this);
      
         // void QWebView::load("http://www.google.com");
      
         QNetworkProxy proxy;
      
         proxy.setType(QNetworkProxy::Socks5Proxy);
         proxy.setType(QNetworkProxy::HttpProxy);
         proxy.setHostName("proxy.cat.com");
         proxy.setPort(80);
         proxy.setUser("username");
         proxy.setPassword("password");
      
          QNetworkProxy::setApplicationProxy(proxy);
      
          QWebEngineView *view = new QWebEngineView(parent);
              view->load(QUrl("http://www.google.com"));
              qDebug() << QUrl("http://www.google.com");
              view->show();
      

      [edit: fixed coding tags and removed credentials SGaist]

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Did you check that your proxy address is correct ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post