"Waiting until closed" would mean your application would be frozen meanwhile. Is that really what you want? Btw. there is QDesktopServices::openUrl() which uses kfmclient on KDE but works on other platforms too, out of the box.