If my QString only has ascii character, I can convert it to std::string or char* as follow:
Qt Code:
  1. QString x = "hello";
  2. std::string str = x.toStdString();
  3. str.c_str();
To copy to clipboard, switch view to plain text mode 

But if my QString has chinses character, I cannot conver it to std::string or char*.
Qt Code:
  1. QString x = " 你 好 ";
  2. std::string str = x.toStdString(); //str will become Unrecognizable Code.
  3. str.c_str();
To copy to clipboard, switch view to plain text mode