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. Unable to open a webpage which has polymer in Qt 5.5

Unable to open a webpage which has polymer in Qt 5.5

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 4.4k 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.
  • R Offline
    R Offline
    Ravimettu
    wrote on last edited by SGaist
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0

      • Login

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