When the input QRectF has a 0 width, that is, it is a line, the function simply returns "false"

If so, I hope QRectF can provide a method
bool QRectF::intersects( const QLineF& )