QStringList fruits; fruits << "apple" << "banana" << "orange"; // insert "pear" at index 1 fruits.insert(1, "pear"); // now fruits contains: "apple", "pear", "banana", "orange"
QStringList numbers = {"one", "two", "four", "five"}; // insert "three" at index 2 numbers.insert(2, "three"); // now numbers contains: "one", "two", "three", "four", "five"
#include