Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
Qt Creator 1.2.1
-
a7f1fc2d6bafee180f95fdf35669d06455b88ada
Description
t4id: 261395
Currently if you add the Q_OBJECT macro to a class after running qmake then the Makefile generated will not specify moc to be run for that class. The solution of course is to run qmake again. This is a common problem with a well known solution, however with Creator there is the a chance to automate this process to make this a non issue.
I propose that something be done for this situation. Creator could either automatically schedule qmake to be run the next time the application is built when the Q_OBJECT macro is added, or Creator could at least warn the user that they will need to run qmake again if they don't want to experience build issues.
As a side note: This may be a well know issue for experienced Qt developers, but may not be for newer Qt developers, and may be required for a better Qt development experience with the Qt SDK.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-13917 undefined reference to `vtable for... persist after "rebuild" , "clean all"
-
- Closed
-
-
QTCREATORBUG-15666 Qt Creator won't run moc after add Q_OBJECT
-
- Closed
-
-
QTCREATORBUG-19577 Windows:Ctrl-r and F5 do not recompile when the defaut build directory has been changed
-
- Closed
-
-
QTCREATORBUG-21840 QMAKE not automatically run after adding files to a project.
-
- Closed
-
-
QTBUG-55319 What the hell:modify header file won't trigger recompile of the source that include that header
-
- Closed
-
-
QTCREATORBUG-16067 Wizards should be able to add Qt modules to a build
-
- Closed
-
-
QTCREATORBUG-20888 Optionally run qmake on every project rebuild
-
- Closed
-
- relates to
-
QTCREATORBUG-19145 On iOS projects, qmake is called everytime a build or run is requested
-
- Closed
-
-
QTCREATORBUG-18731 qmake is not run automatically after adding class to project
-
- Closed
-
-
QTBUG-13334 qrc files are not added to Makefile dependencies in debug_and_release mode
-
- Closed
-
- replaces
-
QTCREATORBUG-931 Unjustified vtable error appared in some case. Swiching the build mode fix the issue.
-
- Closed
-
-
QTCREATORBUG-5019 Build system does not detect when a class is changed from 'not inheriting from QObject' to 'inheriting from QObject' :: "undefined vtable for <SIGNAL NAME>"
-
- Closed
-
-
QTCREATORBUG-8012 Qt Creator does not always regenerate Makefiles when header files are renamed
-
- Closed
-
- resulted from
-
QTBUG-26426 adding/removing Q_OBJECT requires explicit invocation of qmake
-
- Closed
-