Results 1 to 5 of 5

Thread: Error in MOC file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    63
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Error in MOC file

    Hi,
    I have the following problem using Qt Creator:

    In my menu I added an option for testing actions associated with it. I removed the option again (I think I first removed the action from the Action Editor, then the menu option itself).
    Ever since then I've been getting a compiler error that is actually referring to the file "moc_mainwindow.cpp", so it's in an auto-generated file (see "moc file error.jpg").
    I also removed some other actions from the Action Editor, but I only get an error for this one.

    AFAIK I have removed every remnant of that option from all visible elements in the design area (see "mainmenu design.jpg"), so I would expect them to be removed behind the scenes, i.e. in auto-generated files, as well. Yet the compiler seems to still find it somewhere and include it when generating dependent files. Apparently I have to remove it manually before the program will compile. But where ?

    Thanks in advance.
    Attached Images Attached Images

Similar Threads

  1. qstring.h no such file or directory error!
    By wenn32 in forum Newbie
    Replies: 14
    Last Post: 5th May 2011, 15:59
  2. Replies: 4
    Last Post: 13th April 2011, 07:03
  3. Replies: 3
    Last Post: 1st November 2010, 16:33
  4. Replies: 4
    Last Post: 9th May 2010, 16:18
  5. Error in qrc file
    By phillip_Qt in forum Qt Programming
    Replies: 2
    Last Post: 11th March 2008, 06:54

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.