Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. String compatible with both Unicode and Multi-byte characters?
Forum Update on Monday, May 27th 2025

String compatible with both Unicode and Multi-byte characters?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 717 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chcw
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved