[Qt-interest] White space problem
Paul Miller
paul at fxtech.com
Thu Jul 28 23:36:44 CEST 2011
On 7/28/2011 3:02 PM, sujan wrote:
> Tell me the correct way to use \ character.Thanks sujan
If you do need to use a \ character in a C string then you need to
escape it with another \, like this:
"C:\\this\\is\\a\\windows\\path"
This is basic C string stuff.
But like others have said, use forward slashes instead - makes things
more portable and you no longer need to use ugly escape sequences.
More information about the Qt-interest-old
mailing list