I want to do something like this in C++ using Qt:
int i = 5;
QString directory = ":/karim/pic" + i + ".jpg";
where +
means I want to concatenate the strings and the integer (that is, directory
should be :/karim/pic5.jpg
). How can I do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…