Answers for "qstring insert character"

C++
1

qstring insert character

//Inserts the QString str at the given index position and returns a reference
//to this QString.

QString str = "Meal";
str.insert(1, QString("ontr"));
// str == "Montreal"
Posted by: Guest on June-06-2021

Browse Popular Code Answers by Language