note: This page will contain code snippets of all QString functions
QString::endsWith()
Returns true if the string ends with s; otherwise returns false.
- #include <QTextStream>
- #include <QString>
- int main()
- {
- if (string->endsWith(".tar.gz") == true) {
- out << "True\n";
- } else {
- out << "False\n";
- }
- }

