Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
String compatible with both Unicode and Multi-byte characters?
chcw last edited by
Under Visual C++, there is a _T macro which will work for both Unicode and Multi-byte character strings. Under Qt, is there a similar macro to do this? For example, under the following code:
QVariant("Source File Name")
The string constant is in ANSI format(or Multi-byte character string), is is possible for the code to work under both Unicode and Multi-byte character projects?