[Qt-interest] Get the logged-in user name?

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Wed Nov 4 11:48:15 CET 2009


Robert Caldecott wrote on Wednesday, November 04, 2009 9:09 AM:

> 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.  

Browsing http://doc.trolltech.com/4.5/functions.html I did not find anything like "getUserName" or "getAccountName" or "getLoggedUser", so I don't think it is available.

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list