本文最后更新于 4 年前,文中所描述的信息可能已发生改变。
cout输出QString
c++
QString str("Hello");
std::cout << str.toStdString().data();qDebug输出QString
c++
QString str("Hello");
qDebug() << str;

