Use QUrl instead of QFileInfo everywhere.