Results 1 to 5 of 5

Thread: Error in MOC file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Oct 2009
    Posts
    364
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    10
    Thanked 37 Times in 36 Posts

    Default Re: Error in MOC file

    have you tried doing a project clean?

    sometimes Qt Creator can get a bit confused when the designer generated code gets out of sync, I usually do this:
    close Qt Creator
    delete debug/release folder
    delete Makefile.* (there should be three)
    delete object_script.<proj name>.* (there are two of these)
    delete <proj name>.pro.user

    reopen the project and rebuild

    make a habit of archiving your project before tinkering with things in the designer.

    I just realized that you actually solved your problem - oh well, the above steps are still useful for doing a project clean manually.
    Last edited by schnitzel; 29th June 2011 at 18:57. Reason: updated contents

Similar Threads

  1. qstring.h no such file or directory error!
    By wenn32 in forum Newbie
    Replies: 14
    Last Post: 5th May 2011, 16:59
  2. Replies: 4
    Last Post: 13th April 2011, 08:03
  3. Replies: 3
    Last Post: 1st November 2010, 17:33
  4. Replies: 4
    Last Post: 9th May 2010, 17:18
  5. Error in qrc file
    By phillip_Qt in forum Qt Programming
    Replies: 2
    Last Post: 11th March 2008, 07: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
  •  
Qt is a trademark of The Qt Company.