Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

iterate through enum in qt

//in Qt
	#include <QMetaEnum>
    
    const QMetaEnum metaCardID = QMetaEnum::fromType<Colour>();
    for (int i=0;i<metaCardID.keyCount();++i)
    {
       value =  metaCardID.value(i);
    
    }
Source by forum.qt.io #
 
PREVIOUS NEXT
Tagged: #iterate #enum #qt
ADD COMMENT
Topic
Name
8+6 =