You are not logged in.

1

Monday, October 2nd 2017, 8:52am

Enum in structure

Hello i have a problem for using enum in struct.
whit google i dont have find a good solution for using enumeration in struct

i need a enum in struct whit QList
for example


Source code

1
2
3
enum type {grass,stone,glass};
struct Material{ int id; QString name; //here need a enum type}
QList<Material> Materials;

Similar threads