like i said, the messagebox is insignificant, the whole comparison is going wrong.
text = QString("C") temp = QStringList( [ "org.freedesktop.DBus", "org.freedesktop.Notifications", "cat" ] ) current = QString("") for s in temp: current = QString(s) if not current.startsWith(text, Qt.CaseInsensitive): print "no match" else: print "match"
~/test $python temp.py no match no match match