October 31, 2010

Polto Polto
Lab Rat
21 posts

[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

 Signature 

Polto

11 replies

October 31, 2010

anselmolsm anselmolsm
Ant Farmer
417 posts

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.

 Signature 

Anselmo L. S. Melo (anselmolsm)
www.anselmolsm.org

October 31, 2010

Smar Smar
Lab Rat
269 posts
anselmolsm wrote:
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.

October 31, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

Hm, again dev-related topic is in Qt in Education.

2Anyone who has rights here: move it to Desktop, please.

October 31, 2010

Smar Smar
Lab Rat
269 posts

I thought that learning would be correct forum for this kind of threads… But now when I look it, there is no correct subforum for this kind of entry. And how language bindings goes under learning anyway?

October 31, 2010

anselmolsm anselmolsm
Ant Farmer
417 posts
Smar wrote:
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 :-)

 Signature 

Anselmo L. S. Melo (anselmolsm)
www.anselmolsm.org

October 31, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

Smar, Learning is forum about using Qt in Learning or for certification things or for Qt Trainings. Good note about Bindings category (Marius, this note is for you).
Currently Desktop category is used for all common questions about Qt, so this thread fits Desktop category.

October 31, 2010

Smar Smar
Lab Rat
269 posts

There should be subforum for Qt training then too? And maybe that forum name should be changed… I can’t think less confusing name now though :/

October 31, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

It’s all upp to admins (I’m not the one). I hope Marius will visit this page tomorrow.

October 31, 2010

Smar Smar
Lab Rat
269 posts

Sure, but I suppose opinions of different people matters? :)

October 31, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

Of course. But not sure Learning name should be changed. It is name of part of Qt.nokia.com site [qt.nokia.com] .

November 1, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

moving to Desktop forum

 
  ‹‹ Events and QMacNativeWidget      [solved] QGraphicsView to fill main window with QT Designer ››

You must log in to post a reply. Not a member yet? Register here!