QString
#include <QString>
#include <string>
#include <iostream>
int main(int argc, char** argv)
{
uint64_t a = 201612120835;
QString s1 = "wangmazi";
QString s2 = QString::number(a).left(8);//将uint64_t转换为QString 并从左至有切割8个
QString s = QString("%1|%2").arg(s1).arg(s2);//使用s1,s2对s进行构造
std::string stlstr = s.toStdString();//转为STL的string输出
std::cout << stlstr << std::endl;
std::system("pause");
return 0;
}