1 qt获取系统位数 QString str_arch = QSysInfo::currentCpuArchitecture() 2 获取程序位数 int size = QSysInfo::WordSize