I’ve attached a bit of demonstration code that shows how moc fails when using
separators inside enumerations and comments. The error I’m getting is: Class
declaration lacks Q_OBJECT macro. Even though it is clearly in the specified
class. Is this a known issue or not? I didn’t find anything about it when
searching.
Thanks,
John Schneiderman
Senior Software Engineer
Galaxy Desktop Team
GOG.com
// Run moc MocFailClass.h
// Get error:
// MocFailClass.h(14): Error: Class declaration lacks Q_OBJECT macro.
#pragma once
#include <QObject>
enum class Flags
{
A = 0b000'0000,
B = 0b000'0001,
All = 0b111'1111,
};
class MocFailClass : public QObject
{
Q_OBJECT
public:
/// '
void memFunc0();
signals:
void signal0();
};
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest