Results 1 to 2 of 2

Thread: QUrl old qt3 encodedpathandquery() = new ?

  1. #1
    Join Date
    Jan 2012
    Posts
    15
    Thanks
    4
    Qt products
    Qt4

    Default QUrl old qt3 encodedpathandquery() = new ?

    Is there a new version for the old qt3 encodedpathandquerry() function?
    I have a QUrl like this: http://www.host.com/workarea/inhere/xxxxxx/yyyyy.zzz
    With the old function, the url could be cut to /workarea/inhere/xxxxxx/yyyyy.zzz.
    It looks like the new toEncode() function was supposed to replace it but i cant find a switch to behave like the old function.
    The only one switch with brings me closer to my goal is toEncode(QUrl::RemoveScheme) this only removes the http part. I can't find a bitmask to remove the host and the scheme.
    I'm pretty much sure that there is a method to do this with QUrl that i just can't see.
    Can anyone help me?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QUrl old qt3 encodedpathandquery() = new ?


  3. The following user says thank you to ChrisW67 for this useful post:

    conti (18th April 2012)

Similar Threads

  1. QUrl how to change it
    By alonso15 in forum Qt Programming
    Replies: 3
    Last Post: 4th August 2011, 15:54
  2. Qurl+poppler
    By wakitowaki in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2011, 19:39
  3. QUrl and https
    By TomASS in forum Newbie
    Replies: 1
    Last Post: 15th March 2010, 22:49
  4. QUrl and EUC-JP
    By Ignacio Serantes in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2009, 15:19
  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.