/root/Qtworkspace/Demo4/greenpass3.cpp:493: 警告:ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/include/qt4/QtCore/qbytearray.h:457: candidate 1: bool QByteRef::operator==(char) const
/root/Qtworkspace/Demo4/greenpass3.cpp:493: candidate 2: operator==(int, int) <built-in>
出现这样的警告后尝试去修改警告行所对应的if语句:
if((getarray[0]==0x03)&&(getarray[1]==0x09))
改为:
if((0x03==getarray[0])&&(0x09==getarray[1]))
就OK了