Ahmad Ahmad - 1 year ago 229
C++ Question

How to convert int to QString?

Is there a

function which takes an int and outputs it as a

Answer Source

Use QString::number():

int i = 42;
QString s = QString::number(i);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download