Results 1 to 2 of 2

Thread: Some problem when using QUrl::addQueryItem method

  1. #1
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Some problem when using QUrl::addQueryItem method

    In my project I want to visit an url with some arguments and catch the return parameters. I take the following codes for test.
    QUrl url = QString("http://localhost/test")
    url.addQueryItem("test", QString("abc+bcd"));
    But the arguments my server received is "abc bcd". I'm sure the error occured when url.addQueryItem executed but I don't know how to fix it. Simply modifying the '+' character by "%2B" doesn't work.
    Who could help me? thanks very much!

  2. #2
    Join Date
    Mar 2011
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Some problem when using QUrl::addQueryItem method


Similar Threads

  1. problem with rowCount method
    By sergio486 in forum Qt Programming
    Replies: 2
    Last Post: 18th December 2010, 08:37
  2. Replies: 1
    Last Post: 25th November 2010, 11:37
  3. paintEvent method problem
    By zgulser in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2010, 12:32
  4. Some problem with painter's fillpath() method
    By salmanmanekia in forum Qt Programming
    Replies: 8
    Last Post: 30th June 2008, 13:31
  5. Problem with qurl and fromlocalfile
    By zorro68 in forum Qt Programming
    Replies: 1
    Last Post: 19th June 2008, 19:44

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.