在Qt程序中使用Windows API读取ini设置信息
char cfg_IniName[] = "./Saved/Config/WindowsNoEditor/Game.ini";
char buf[1024];
::GetPrivateProfileStringA("UserData", "UserName", "NoUserName", buf, 1024, cfg_IniName);
QString userName = QString::fromLocal8Bit(buf);