It defaults to Qt::MatchStartsWith and thus returns the wrong result. (cherry picked from commit 1b5c2ca5)