Fn 1 :
arg
这个函数的具体声明不写了,它有20个重载,典型的示例代码如下:
1: #include <QtCore/QCoreApplication>
2: #include <iostream>
3: #include <stdio.h>
4: using namespace std;
5:
6: int main()
7: {
8: QString str = QString("Ggicci is %1 years old, and majors in %2.").arg(20).arg("Software Eng");
9: cout << str.toStdString() << endl;
10: return 0;
11: }
输出结果:
Ggicci is 20 years old, and majors in Software Eng.
Press <RETURN> to close this window...Fn 1 :
arg
这个函数的具体声明不写了,它有20个重载,典