把QString写到文件中可以用toutf8()函数

 

QByteArray QString::toUtf8() const

Returns a UTF-8 representation of the string as a QByteArray.

UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString.

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
猜你喜欢
  • 2021-12-30
  • 2022-02-15
  • 2021-12-31
相关资源
相似解决方案