Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
2.4.3
-
None
-
2.4.3 Rev 7, Visual Studio 2019, Qt 5.12.3
Description
Testing Rev 7 linked from QTVSADDINBUG-704
Ran into this error compiling qputty, but it boils down to the attached example. Moc think the slot exists even though it is removed with a define.
build output for the attached example:
1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>Generate moc_predefs.h
1>Moc'ing test.h...
1>test.cpp
1>C:\Users\Noah\source\repos\bugtest\test.cpp(16,26): warning C4100: 'argv': unreferenced formal parameter
1>C:\Users\Noah\source\repos\bugtest\test.cpp(16,14): warning C4100: 'argc': unreferenced formal parameter
1>moc_test.cpp
1>C:\Users\Noah\source\repos\bugtest\Debug\moc_test.cpp(75,30): error C2039: 'testSlot2': is not a member of 'TestObject'
1>C:\Users\Noah\source\repos\bugtest\test.h(3): message : see declaration of 'TestObject'
1>Done building project "test.vcxproj" – FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========