Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-425

moc files are not generated in VS2013

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • 2.0.0
    • 2.0.0
    • General
    • None
    • Visual Studio Ultimate 2013 Version 12.0.40629.00 Update 5, Windows 7, Desktop Qt 5.6.1 MSVC2013 64bit, Qt VS Addin MSVC2013-2.0.0-beta Aug 10 2016

    Description

      I go through normal steps to create a QObject-derived class with the Q_OBJECT macro but cannot build because the moc_*.cpp file is not generated.

      Steps to reproduce:
      1. Create a new Qt Console Application project
      2. Add a new class derived from QObject
      3. Edit the header file of the new class to add Q_OBJECT
      4. Save. Observe moc_MyData.cpp appears in Solution Explorer
      5. Build. Observe error:
      Cannot open source file: 'GeneratedFiles\Debug\moc_MyData.cpp'
      : No such file or directory
      6. Verify on file system that GeneratedFiles\Debug folder structure
      exits, but is empty; moc_MyData.cpp does not exist

      I verified this behavior on my workstation and on two virtual machines with VS 2015 and VS 2013. All test systems have at least two versions of Qt: a Windows x64 Desktop Qt and a WEC2013 ARM Qt. Neither virtual machine had a prior version of VS Addin. On the virtual machines, I only set Windows x64 Desktop Qt 5.6.1-1 in the VS Addin.

      Just as I hit "Create" I saw "Bug"... bug cannot find how to change this from a bug. This is really just a recommended change.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            heimrich Karsten Heimrich
            stan.m Stanley Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes