Is there a way I can get the name of the logged-in user in Qt? Under Windows I can use the GetUserName or GetUserNameEx API calls but I wondered if Qt exposes this information anywhere. Thanks in advance.