Results 1 to 2 of 2

Thread: regen makefile/moc files from Qt Creator ?

  1. #1
    Join Date
    Oct 2009
    Posts
    16
    Qt products
    Qt4
    Platforms
    Windows

    Default regen makefile/moc files from Qt Creator ?

    I just added a new QObject class to my Qt Creator project and it doesn't build because it can't file the corresponding moc file
    ("undefined reference to vtable for ...").
    How can I regen makefile/moc files from Qt Creator ? I tried Build/Rebuild All but it doesn't create the corresponding moc file for this new class.

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: regen makefile/moc files from Qt Creator ?

    You don't need to use the moc directly.
    Eventually use Run qmake (from build menu)

    But this sound like a linker error... so check the existence of the definitions of your member functions.

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

    ajax (14th December 2010)

Similar Threads

  1. Qt Creator: File Makefile doesn't exist
    By earthling in forum Qt Tools
    Replies: 6
    Last Post: 4th November 2016, 03:44
  2. Clean all the build files in Qt Creator
    By gt.beta2 in forum Qt Tools
    Replies: 4
    Last Post: 31st March 2011, 17:08
  3. Qt Creator: File Makefile doesn't exist
    By earthling in forum Qt Programming
    Replies: 0
    Last Post: 9th December 2009, 17:46
  4. Have Creator open source files with project
    By Asperamanca in forum Qt Tools
    Replies: 2
    Last Post: 23rd October 2009, 08:25
  5. Replies: 2
    Last Post: 11th July 2006, 14:19

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.