Hi I have a program that do this : gives a QString and change every "\" with "/" . It seems very simple but when I write below code 5 errors happen . please help me . thanks.

My code :

Qt Code:
  1. QString path ;
  2. path = "C:\MyLife\Image Collection" ;
  3. for( int i=0 ; i < path.size() ; i++ )
  4. {
  5. if( path[i] == "\" )
  6. path[i] = "/" ;
  7. }
  8. qDebug() << path ;
To copy to clipboard, switch view to plain text mode