Use QDesktopServices::openUrl() and QUrl::fromLocalFile().