Quote Originally Posted by illuzioner
this is what i had initially, but the problem with this is that it doesn't allow me to use the EditType enum in other classes. plus, now the EditType enum becomes the class type requiring the :: operator whenever i need to refer to the enum.

other ideas??
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.
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};