You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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