Added support for QtSingleApplication.