Results 1 to 2 of 2

Thread: problem declaring a class

  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default problem declaring a class

    hi, I coded this; but compiler gets errors on MySubmenu constructor in .cpp ...What's the problem? thanks
    Qt Code:
    1. mypopupmenu.cpp(40): error C2653: 'MySubmenu' : is not a class or namespace name
    2. mypopupmenu.cpp(42): error C2550: 'MySubmenu' : constructor initializer lists are only allowed on constructor definitions
    To copy to clipboard, switch view to plain text mode 
    Attached Files Attached Files
    Regards

  2. #2
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: problem declaring a class

    Well, you have an extra p in the declaration. "MySubpmenu". Could that be it?
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

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

    mickey (26th May 2006)

Similar Threads

  1. How can i prevent class redefinition problem ?
    By ankurjain in forum General Programming
    Replies: 5
    Last Post: 26th May 2006, 02:35
  2. Replies: 2
    Last Post: 4th May 2006, 19:17
  3. Thread Problem
    By qball2k5 in forum Qt Programming
    Replies: 2
    Last Post: 12th April 2006, 17:31
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. Compilation problem, don't know why
    By yellowmat in forum Newbie
    Replies: 6
    Last Post: 2nd March 2006, 15:36

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.