张小飞 发布了一篇文章 「Qt获取Linux系统下当前用户名」 5月前 • Linux, Qt, Qt技巧 • linux, QDesktopServices::HomeLocation, QStandardPaths::HomeLocation, Qt • 567 • 0 Qt没有直接的接口去获取到当前系统用户名,只能够间接的通过现有的接口去获取。(比如下边的例子通过获取home路径) …… 5 阅读全文