[Qt-interest] How to get the user name

Girish Ramakrishnan girish at forwardbias.in
Sat Oct 3 08:13:07 CEST 2009


Alexander Poddey wrote:
> Hi all,
> 
> does anybody know if a qt method exists to get the user name from the
> underlying system? There is some documentation about database user names, but
> nothing else.
> 
> This was originally asked by Michael Schloh von Bennewitz in 2002:
> http://lists.trolltech.com/qt-interest/2002-12/thread00130-0.html
> 
> I wonder if a qt method has been added in the meantime.
> 

Nope, there isn't any. Do check if QDesktopServices::displayName()
serves your purpose.

Girish



More information about the Qt-interest-old mailing list