Imagine I have a QString containing this:
"#### some random text ### other info
a line break ## something else"
How would I find out how many hashes are in my QString? In other words how can I get the number 9 out of this string?
answer
Thanks to the answers, Solution was quite simple, overlooked that in the documentation using the count() method, you can pass as argument what you're counting.