So you want to call QMetaObject::method() to iterate over the whole list of methods and check if their name matches? That would be the only other possible way to check the methods in a QMetaObject.

But that would be really costly if there are many methods defined and the methods is always at the end of that list. I'm pretty sure that QT implemented the look-up from QMetaObject::indexOfMethod() must have implemented the look-up with a hashtable/dictionary to make that more efficient..... oh wait ... no they didn't ... they also iterate through the method list internally .... so yeah okay, I will re-implement that part.