Convert a double to a QString

后端 未结 5 712
北荒
北荒 2021-02-02 05:39

I am writing a program in QT. I want to convert a double into a Qstring in C++.

5条回答
  •  爱一瞬间的悲伤
    2021-02-02 05:55

    Instead of QString::number() i would use QLocale::toString(), so i can get locale aware group seperatores like german "1.234.567,89".

提交回复
热议问题