Convert a double to a QString

后端 未结 5 709
北荒
北荒 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 06:04

    Check out the documentation

    Quote:

    QString provides many functions for converting numbers into strings and strings into numbers. See the arg() functions, the setNum() functions, the number() static functions, and the toInt(), toDouble(), and similar functions.

提交回复
热议问题