[Moved] third party definition
what does third party mean? i see some new keywords like Q_SIGNALS , Q_SLOTS and i know how to use it?
but i want a technical definition of it?
thanks
11 replies
3rd party component/library is a externally developed thing, i.e., it’s used by Qt or can be used with Qt, but it’s not developed as part of Qt (ok, ok, Qt-WebKit is in src/3rdparty/webkit/, maybe it’s the exception =).
The description of Q_SIGNAL(S) and Q_SLOT(S) is in the QObject docs [doc.trolltech.com], there is a section i Signals and Slots [doc.trolltech.com] regarding the use of 3rd party signals & slots mechanism.
In a nutshell: You can develop a project mixing Qt and a 3rd party library that also provides a signal & slots mechanism. In certain cases you would want to use the 3rd party’s mechanism, in other cases you would prefer continue using the Qt one: that’s when you use these macros.
Why?
Because in such scenario (CONFIG += no_keywords), moc won’t do anything with the keywords signals, slots and emit, leaving this task to the 3rd party library. moc will deal only with the ones you explicitly say ‘I want to use Qt here’, i.e., use the aforementioned macros.
3rd party component/library is a externally developed thing, i.e., it’s used by Qt or can be used with Qt, but it’s not developed as part of Qt (ok, ok, Qt-WebKit is in src/3rdparty/webkit/, maybe it’s the exception =).
Actually, qt-webkit is developed outside of Qt tree, so it fits more naturally to 3rd party dir than actual source dir.
Actually, qt-webkit is developed outside of Qt tree, so it fits more naturally to 3rd party dir than actual source dir.
Yes, it is. The development goes directly to Webkit’s repository, then a snapshot goes to src/3rdparty.
Well, I put it as a ‘exception’ just ‘cause if you compare Qt-Webkit with libpng, for example, one would say ‘Qt-Webkit is related with Qt’… Ok, maybe this level of details could be left out of my answer :-)
Of course. But not sure Learning name should be changed. It is name of part of Qt.nokia.com site [qt.nokia.com] .
You must log in to post a reply. Not a member yet? Register here!






