Use QFileInfo::exists(...) static method here
(cherry picked from commit 232b7b8935997e513c9b86ad231d3e7a78d36a0d)