Because the class does not inherit QObject caused
Just like you can inherit QObject
If you have inherited the QObject class, the compiler error also appeared
Will inherit QObject class up front: public QObject
Finally, you can compile
Because the class does not inherit QObject caused
Just like you can inherit QObject
If you have inherited the QObject class, the compiler error also appeared
Will inherit QObject class up front: public QObject
Finally, you can compile