I want to remove all the trailing whitespace characters in a QString. I am looking to do what the Python function str.rstrip() with a QString
QString
str.rstrip()
QString::Trimmed() removes whitespace from the start and the end - if you are sure there is no whitespace at the start you can use this.