标签:bsp deb include add idg for main public ++
#include <QMetaEnum>
public:
enum TestType{
TEST1=0,
TEST2
};
Q_ENUM(TestType)
QMetaEnum metaEnum = QMetaEnum::fromType<MainWidget::TestType>();
for (int i=0; i<metaEnum.keyCount();i++)
{
//qDebug() << metaEnum.key(i);
cmbTestType->addItem(metaEnum.key(i));
}
标签:bsp deb include add idg for main public ++
原文地址:https://www.cnblogs.com/ike_li/p/12932418.html