Solved Application change following the windows session username?
-
Hello, my application have to be used by multi users but I need to allow the application functionality following the windows session username, do you know how can I get this user name?
Thank you for your help
-
Hi
As far as i know, there is no cross platform way to do it but various ways with tradeoffs.
https://stackoverflow.com/questions/26552517/get-system-username-in-qt
Maybe the getenv is the less fuss way. -
@mrjj great thank you!