Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
Qt Creator 4.7.2
-
None
-
Desktop Ubuntu 16.04
Qt 5.7 compiled with MySQL support
Description
Fairly frequent intermittent issue
Repro case
- Start a new project (in my case a gui app)
- Create a new class (in my case, Verifier) that inherits QObject
- Add theĀ Q_DECLARE_METATYPE(Verifier) after the class declaration in the header file.
- Switch to the main.cpp source file.
- #include "verifier.h"
- In the main function, add qRegisterMetaType<Verifier>("Verifier");
Expected result:
The CLANG model shows no errors and the application compiles.
Actual result:
The CLANG model shows an error and the message is something like "expected ;" The application compiles, but the error still shows in the editor. To get rid of it, restart Creator.