Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15666

Qt Creator won't run moc after add Q_OBJECT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.5.1
    • All Other Issues
    • None
    • Win8x64,qt-opensource-windows-x86-msvc2013_64-5.5.1.exe

      First add a new class to a project and be sure not based on QObject.
      Then build the project.
      Then add Q_OBJECT to the class and change the base class to QObject.
      Then build again,then there will be linking error.The cause is although we add Q_OBJECT to the header,the build system still doesn't run moc.exe on the header file.
      The only solution is to delete the shadow build folder.So there seems to be many data sync problem related to shadow build folder.
      Similar problem is QTCREATORBUG-15658

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

            con Eike Ziller
            wgt wgt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes