(1)
QString QString::number ( long n, int base = 10 ) [static]
examle:
long a = 48; QString s = QString::number(a, 10); // s == "48"
QString t = QString::number(a, 16).toUpper(); // t == "30"
(2)
long a = 48; QString s = QString("%1").arg(a);
时间: 2024-10-28 20:00:41