title: How to encode URL parameters in QT?
body: <p>I have the following URL</p>
  
  <pre><code>QString url = "http://www.gigacooldomainname.com/" + setName + "/" + fileName + ".jpg"
  </code></pre>
  
  <p>where setName and fileName are QString variables.</p>
  
  <p>I wish to have the following:</p>
  
  <pre><code>QString url = "http://www.gigacooldomainname.com/" + QUrlParameter::encode(setName) + "/" + QUrlParameter::encode(fileName) + ".jpg"
  </code></pre>
  
  <p>Unfortunately there is not such QUrlParameter class or encode method.</p>
  
  <p>I know I can write one by myself but was curious if there is already an existing solution in QT4.</p>
  
  <p>I am also not interested in Q3Url::encode solution since I don't have the Q3Url headers.</p>