> The code is QString forbid="\" / \ * , ? < > | : . = "; Looks like you forgot to escape the second \ character. eg: QString forbid="\" / \\ * , ? < > | : . = "; (note the double slash \\ ). Hope that helps ;) pc. -- http://colby.id.au