Just use whichever Qt you have.
Comparators in C++ never check for equality.