Adding data processing class - inherit from QObject or not ?
AnneRanch last edited by
If I add a C++ data processing class, do not need ANY access to widgets / GUI , to the Qt application - should it inherit from QObject?
JonB last edited by
If your class simply has nothing to do with Qt, it should not inherit from
QObject. You should inherit from
QObject--- or any other class --- if and only if your code needs to do so, for some reason.