Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
-
00c523ab372c680984b17ad8d66939cd3aaa8f34
Description
When running lupdate multiple warnings are generated with the text
Qualifying with unknown namespace/class ::ClassName
It turns out in this case that these are being caused by a class declaration in the header like so:
class ClassName final : public QObject
In one case where the class was declared with the `final` specifier in the source file, the warning generated was:
Class 'final' lacks Q_OBJECT macro
...in this case the class declaration was:
class CustomXmlHandler final : public QXmlDefaultHandler
...
Q_DECLARE_TR_FUNCTIONS( CustomXmlHandler )
...
I am not sure if lupdate even supports such declarations in a source file (vs header file) but in this case the warning still went away after removing the `final` specifier from the declaration.