10-02-2012 08:10 AM
I want to pass an HTTP request where the name has an embedded comma.
As an example, the following url is fixed as "HTTP://www.test.com/feed/rss.abc?q=good".
I want to insert the word hello followed by a comma (,) before the word good.
Starting at position 33, i am able to insert a parametre by using the following - :
QString chosenWord = "hello";
QString pathUrl = httpAddress;
pathUrl.insert(33, chosenWord) + ",";
I obtain the following :-
=>>> pathUrl is HTTP://www.test.com/feed/rss.abc?q=good
=>>> pathUrl is HTTP://www.test.com/feed/rss.abc?q=hellogood
I just can't get the comma(,) between hello and good! Tried numerous values after the plus (+) sign to no avail. Anyone to the rescue?
Solved! Go to Solution.
10-02-2012 09:08 AM
10-03-2012 01:12 AM
Thanks simon_hain. You were right in using the += operand, unfortunately it appended the ',' at the end of the string. I am now going thru QString documentation to see if I can find the solution. If you find a solution before I do, please let me know. Thanks.