我是用Qt书写的软件,我的任务之一是判断Windows OS是否为32比特,还是64比特,然后根据这一事实进行以下业务。
However, when I was trying "QSysInfo::WordSize", it always return 32 while I was actually running on Windows 7-64 bit OS. I also tried
#ifdef _WIN32
return 32;
#elif _WIN64
return 64;
这也使32人返回。
Actually Qt is 32bit in my system. Is that the problem? How can I get the actual word size of Windows?
成就