[Qt-interest] Compile warning

RZ rz at univie.ac.at
Thu Oct 29 20:58:57 CET 2009


You have to escape your escape sequences if between "".

QString forbid="\\" / \\ * , ? < > | : . = ";

> Hi all,
> 
> I check for invalid file names under windows  and I got the warning
> 
> otmainwindow.cpp:1408:18: warning: unknown escape sequence: '\040'
> 
> The code is QString forbid="\" / \ * , ? < > | : . = ";
> To me, the only escape sequence of my string is \". What I am doing wrong ?
> 
> Thanks for your help
> 
> Alain



More information about the Qt-interest-old mailing list