T
T
timao2014-04-06 18:50:38
Qt
timao, 2014-04-06 18:50:38

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

1 answer(s)
P
Pavel Shvedov, 2014-04-06
@timao

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 question

Ask a Question

731 491 924 answers to any question