Used qIconProvider instead of  QFileIconProvider() and removed msgHandler on Windows.