I need my string to repeat n amount of times, something like this:
QString s("Dog");
qDebug() << s * 3;
"DogDogDog"
I know you can do it with single char
's, but I can't figure out how to do it with strings, without resorting to creating a for loop like this:
https://paste.fedoraproject.org/300131/94336814/
Any shortcuts?