Answer the question
In order to leave comments, you need to log in
Whether to inherit own class from QObject?
I've read Schlee 4.8 (not all of it yet, only half of it) and I'm writing my first Qt program, which is also my thesis on image processing (one big powerful class).
When creating a new class through Qt Creator, I was offered to inherit the class from QObject, and I'm already confused. Gentlemen, experts, tell me, please, when it is worth doing and when not.
Answer the question
In order to leave comments, you need to log in
For example, if you want to use Qt signals / slots in your class, then you need to inherit from QObject
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question