Solved Whats a QObject?
-
yeah thats my question.
What are the objects or class could be called QObjects ?
Can we say QTcpSOcket is a QObject ?
Whenever I search for a QObject , search engine shows me QObject as a class.
I want to know what object(s ) can be called a QObject? -
Welcome @MokJ
QObject is the base class for the other Qt classes.
QTcpSocket, QWidget as well as and every Qt class is QObject.Also if you want to use Qt SIGNAL & SLOT, QObject must be parent of your class.
-
-
-
Hi,
One very important correction: NOT all classes from the Qt framework are QObject based. That wouldn't make sense at all.
Such classes include: QString, QRegularExpression, QGraphicsItem etc.