Add comma's in string
c++, qt
Solution
Checkout the docs on QLocale at http://doc.qt.io/qt-4.8/qlocale.html:
QLocale(QLocale::English).toString(123456789);
Problem
I was wondering how can I set a ',' comma in an int or string? For example, I already got this: ``` QString::number(object->number()) ``` which will be shown on the UI. And the number is something like `123456789`, how can I set the format that the string will be `123,456,789`?