How to Compare two Qstrings? [closed] September 9, 2023 by Tarik You can use : int x = QString::compare(str1, str2, Qt::CaseInsensitive); // if strings are equal x should return 0