Results 1 to 4 of 4

Thread: QUrl how to change it

  1. #1
    Join Date
    May 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QUrl how to change it

    Hi,
    My problem is how to change automaticlly the url without loading a page
    for example some sites have a home page like this "www.urlexample.com/home"
    My question is how to get this link when you only put "www.urlexample.com" (without loading a pageweb)
    I hope that it was clear

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QUrl how to change it

    I'm sorry, but you was not clear.
    what do you mean for "My problem is how to change automaticlly the url without loading a page"?
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    May 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QUrl how to change it

    Sorry , My english is bad
    for example http://formula1.com you write formula1.com but after some times (when the page is loading) it change to http://www.formula1.com/default.html
    I want a function in qt that change the url (like the example)

  4. #4
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QUrl how to change it

    That cannot be done, since it is not a static transformation of a URL, but an HTTP redirection. You thus need to query the server for the page and follow the redirections.

Similar Threads

  1. Qurl+poppler
    By wakitowaki in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2011, 19:39
  2. QUrl and https
    By TomASS in forum Newbie
    Replies: 1
    Last Post: 15th March 2010, 22:49
  3. QUrl and EUC-JP
    By Ignacio Serantes in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2009, 15:19
  4. QUrl broke?
    By bwindorski in forum Qt Programming
    Replies: 3
    Last Post: 26th January 2009, 20:16
  5. QUrl parsing?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 17th January 2008, 10:51

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.