组合字符串的另一个函数是QString::sprintf()。此函数支持的格式定义符合C++库中的函数sprintf()定义的一样。 QString str;. str.sprintf("%s"," welcome");.
確定! 回上一頁