Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Why having a class with Q_OBJECT does not compile, unless the class inherits QObject as its base class.
class Text { Q_OBJECT };
I could not try find the answer for it myself. Can someone please help me understand the basic of this.
Because this macro is using QObject functionality.