Why does escaping backslash returns double backslash?
-
I am trying to build a font code, basically:
"\u" + codeThe issue is, if I escape the backslash the final string turns into "\\ucode", as in double backslash, if I don't escape the character....you know...compiler error.
Anyone care to tell me why?As to why, I implemented a custom image provider for QML frontend to build images in C++ and load them in Image types, but I dislike having to write "\u" + rest of code everytime I want to load a font-based icon.