String compatible with both Unicode and Multi-byte characters?

  • 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?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.