The QVariant type of the Qt Framework offers comparison operators <, <=, >, >=
, but they work unexpected on signed/unsigned integer arguments mismatch:
QVariant(-1) < QVariant(0u) yields false
QVariant(0u) > QVariant(-1) yields false
Does anybody know if this is a bug, or is this intended? Do this operators always return false on singed/unsigned mismatch?
Btw, I'm using Qt 5.6