Results 1 to 2 of 2

Thread: Meta object features not supported for nested classes

  1. #1
    Join Date
    Jun 2012
    Posts
    58
    Thanks
    13
    Qt products
    Qt4

    Question Meta object features not supported for nested classes

    {Using VS2010 , Qt 4.7.0}

    Qt Code:
    1. error : Meta object features not supported for nested classes
    To copy to clipboard, switch view to plain text mode 

    Trolltech site here 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)?

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Meta object features not supported for nested classes

    document your class as "private", and then un-nest it.
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. The following user says thank you to amleto for this useful post:

    ustulation (16th September 2012)

Similar Threads

  1. Static Meta Object
    By sajis997 in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2012, 10:18
  2. Replies: 12
    Last Post: 26th June 2011, 11:26
  3. Meta-Object Compiler Design Details
    By lexfridman in forum Qt Programming
    Replies: 2
    Last Post: 9th February 2011, 00:53
  4. Qt Linguist Meta-data and lupdate
    By Tyris in forum Qt Tools
    Replies: 0
    Last Post: 7th May 2010, 07:58
  5. Replies: 7
    Last Post: 15th January 2010, 20:45

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.