Changing backslash to forward slash in a QString
<p>I have a program that gives a QString and changes every "\" to "/". It seems very simple but when I use the below code, 5 errors happen:</p>

<pre><code>QString path ;
path = "C:\MyLife\Image Collection" ;
for( int i=0 ; i &lt; path.size() ; i++ )
{
    if( path[i] == "\" )
        path[i] = "/" ;
}
qDebug() &lt;&lt; path ;
</code></pre>
