[Solved] How to count how many times eg "leon" exists in a QString..
-
For example i have:
@QString leon="1,leon,leonleon,2,3,leon"@
how can i show the number 4 cause "leon" is 4 times in the qstring...? -
[code]
QString leon="1,leon,leonleon,2,3,leon";
qDebug() << leon.count("leon");
[/code] -
So simple! Thanks! :)