Err, I've JUST done that in my project and I can access the enum thypes in other classes, as long as I include the header file.Originally Posted by illuzioner
I'll agree that having to use the class :: prefix in the .cpp file of the class implementing the enum is retarded, but that's just a minor asthetic thing.
What I did find FUBAR is that Qt assignes really retarded, non-logical values (ie. not beginning at 0 and increasing from there) in the outputted moc file, so I ended up forcing it to do so by passing the values in the initialisation of the enum. ie. enum EnumInstance { foo = 0, bar = 1, fubar = 2};
Bookmarks