Sort:  

But after 1. Qf5+ Black can play Qf6 blocking the check and avoiding the checkmate.