Added cast to float within qMin check. Reason was change of dotProduct from 4.8 to 5.0 Qt.