PDA

View Full Version : Meta object features not supported for nested classes



ustulation
15th September 2012, 11:03
{Using VS2010 , Qt 4.7.0}


error : Meta object features not supported for nested classes

Trolltech site here (http://doc.trolltech.com/4.7.1/moc.html) says under Limitations that
Less importantly, the following constructs are illegal. All of them have alternatives which we think are usually better, so removing these limitations is not a high priority for us. It explains the alternatives to most of the limitations but none for the moc'ing of nested class problem. My nested class is private and i don't want it exposed for usage. Only the surrounding class may use it via member functions.

How do i do this (alternatives)?

amleto
15th September 2012, 17:36
document your class as "private", and then un-nest it.