QT 拼接字符串

int num1 = 2,num2 = 3;
QString str = tr("There are %1 apples and %2 oranges on the desk .").arg(num1).arg(num2);

posted @ 2022-05-14 12:20  黄立明02  阅读(276)  评论(0编辑  收藏  举报