标签:
int index = QAbstractSocket::staticMetaObject.indexOfEnumerator("SocketState"); QString aaa = QAbstractSocket::staticMetaObject.enumerator(index).valueToKey(1);
如何打印Qt中的枚举所对应的字符串
原文地址:http://www.cnblogs.com/gebilaowangdebaba/p/4890422.html