Results 1 to 2 of 2

Thread: QWebView load function

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QWebView load function

    Hi,

    I have the following case;

    I have a url like "foouser@tt.com". When I want to load this url using QWebView, it doesn't load the page since it couldn't load the url.

    If I percent encode the url above I send "foouser%40tt.com" to the load function but it converts it to "foouser%2540tt.com" which results as failure again.

    But if ı copy-paste the link "foouser%40tt.com" to the browser, it shows the page as expected.

    Is there any way to prevent load function to do precent encoding? Or any other ideas?

  2. #2
    Join Date
    Aug 2012
    Location
    Montreal
    Posts
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWebView load function

    Have you tried adding http:// in front of the url? I had no problem using
    Qt Code:
    1. webView->load(QUrl("http://foouser@tt.com"));
    To copy to clipboard, switch view to plain text mode 
    without escaping the "at" sing.

Similar Threads

  1. Can Qwebview load xml/xsl file?
    By richardander in forum Qt Programming
    Replies: 3
    Last Post: 26th August 2015, 22:36
  2. Change HTML source in QWebView during load
    By The_Fallen in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2012, 21:29
  3. QWebview fails to load page css on windows xp
    By marwyn in forum Qt Programming
    Replies: 16
    Last Post: 26th August 2011, 14:24
  4. QwebView unable to load
    By asmncl in forum Qt Programming
    Replies: 2
    Last Post: 11th February 2011, 06:00
  5. QWebView::Load problem
    By yogeshgokul in forum Qt Programming
    Replies: 2
    Last Post: 3rd December 2008, 10:28

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.