Results 1 to 6 of 6

Thread: Updated to Creator 4.14 and 5.15.2 MSVC 2019 - now unable to generate main.moc

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2020
    Qt products
    MacOS X Windows Android

    Default Updated to Creator 4.14 and 5.15.2 MSVC 2019 - now unable to generate main.moc

    I recently updated my Qt Creator to 4.14 and went from 5.14.2 MSVC2017 64bit to 5.15.2 MSVC2019 64 bit. My project had its command line arguments wiped out upon that update and now when I try to compile / run the app - I am receiving the following error:

    error: dependent 'debug\main.moc' does not exist.

    I have
    Qt Code:
    1. #include "main.moc"
    To copy to clipboard, switch view to plain text mode 
    on the last line of my main.cpp file

    I have cleaned, ran qmake, built over and over again yet I can't seem to solve this issue (which did not happen while using MSVC2017) I use the Network Download example but have most of the code in a separate .cpp file versus having everything in my main.cpp. Nothing has changed in the code from using MSVC2017 and MSVC2019 so I am not quite sure why this would stop working?

    Any assistance would be greatly appreciated.
    Last edited by luckachi; 28th December 2020 at 19:56.

Similar Threads

  1. Replies: 2
    Last Post: 17th July 2013, 09:26
  2. unable to generate action in popup menu
    By Chinmoy in forum Newbie
    Replies: 1
    Last Post: 17th March 2011, 08:38
  3. Replies: 1
    Last Post: 21st September 2010, 08:58
  4. tableWidget created in Qt Creator not updated
    By binaural in forum Qt Programming
    Replies: 2
    Last Post: 10th July 2009, 21:50
  5. Qt4.3 and MSVC++ 2005 - unable to install Qt
    By nitor in forum Installation and Deployment
    Replies: 12
    Last Post: 25th July 2007, 21:45

Tags for this Thread


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.