The QVariant Qt Framework type offers comparison operators <, <=, >, >= , but they work unexpectedly when unsigned integer arguments do not match:
QVariant(-1) < QVariant(0u) yields false QVariant(0u) > QVariant(-1) yields false
Does anyone know if this is a bug or is it intended? Do these statements always return false when socket / unsigned mismatch?
Btw, I am using Qt 5.6
source share