Results 1 to 2 of 2

Thread: Webkit + Proxy problem

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Webkit + Proxy problem

    I implemented a simple interface to connect to Google Map API.
    The connection starts by creating
    Qt Code:
    1. manager = new QNetworkAccessManager(this);
    2.  
    3. this->page()->mainFrame()->addToJavaScriptWindowObject("Map", this);
    4.  
    5.  
    6. connect(this,SIGNAL(urlChanged(const QUrl&)),SLOT(waitPage()));
    7. connect(page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()),
    8. this, SLOT(populateJavaScriptWindowObject()));
    9.  
    10. connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
    11. connect(this,SIGNAL(reloadMap()), this,SLOT(loadCoordinates()));
    To copy to clipboard, switch view to plain text mode 
    The code works fine, but some users said to me that they could not connect and the map does not show at all.
    I guess that some of them use Proxy to connect to Internet.Shall I implement a Proxy also in QNetworkAccessManager?
    regards

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Webkit + Proxy problem

    Yes, you should provide your users the ability to set a proxy.
    Some internet providers want their users to go through a proxy.

Similar Threads

  1. QTcpSocket proxy authentication problem
    By arbi in forum Qt Programming
    Replies: 3
    Last Post: 14th September 2009, 16:43
  2. QHttp proxy problem
    By andre.rigon in forum Qt Programming
    Replies: 2
    Last Post: 28th September 2008, 21:19
  3. Proxy problem
    By MrShahi in forum Qt Programming
    Replies: 1
    Last Post: 23rd June 2008, 16:11
  4. Replies: 15
    Last Post: 6th April 2008, 10:06
  5. QTcpSocket - Proxy problem
    By vishesh in forum Qt Programming
    Replies: 1
    Last Post: 26th September 2007, 23:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.