PDA

View Full Version : QObject Internals Doc



sunil.thaha
2nd June 2006, 07:24
Hi,

Do you have any link that explains the Implementation details of the QObject, Q_OBJEC, Q_PROPERTY Macro.

zlatko
2nd June 2006, 08:37
The best link (http://doc.trolltech.com) :p

jpn
2nd June 2006, 08:49
What do you mean with "implementation details"? Just read the sources if the documentation is not enough.. :)

sunil.thaha
2nd June 2006, 10:32
The best link (http://doc.trolltech.com) :p

Thank u for the link i never knew something of that sort exist ;)

But nothing is said about how the Q_OBJECT is implemented. No info about the moc ing the QObject Subclasses is Provided that explain about qt_invoke or the implementation of the functions declared ....

I was asking if anyone has any doc that helps me understand the internals better.

zlatko
2nd June 2006, 10:46
Are you sure that oficial documentation is poor :rolleyes:
Moc system (http://doc.trolltech.com/3.3/metaobjects.html)
Also available good book Blanchet "Gui programing with Qt3", search in web for it

wysota
2nd June 2006, 11:08
But nothing is said about how the Q_OBJECT is implemented.


#define Q_OBJECT \
public: \
static const QMetaObject staticMetaObject; \
virtual const QMetaObject *metaObject() const; \
virtual void *qt_metacast(const char *); \
QT_TR_FUNCTIONS \
virtual int qt_metacall(QMetaObject::Call, int, void **); \
private:



No info about the moc ing the QObject Subclasses is Provided that explain about qt_invoke or the implementation of the functions declared ....
I was asking if anyone has any doc that helps me understand the internals better.

http://doc.trolltech.com/qq/qq16-dynamicqobject.html

sunil.thaha
2nd June 2006, 13:13
Are you sure that oficial documentation is poor :rolleyes:
Moc system (http://doc.trolltech.com/3.3/metaobjects.html)

No the doc is one of the best written manual on a Beautiful tool ever made. But it emphasises more on the usage rather than the design of the tool. Hope you get me .

Anyway Thanks for the tip!

The link by Wysota is what i had wanted to begin with the exploration of Qt's Internals. That gets into the implementation of the functions declared by Q_OBJECT.

Thanks all