[Qt-interest] Question regarding plugins

Thiago Macieira thiago at kde.org
Fri Oct 23 19:59:10 CEST 2009


Em Sexta-feira 23 Outubro 2009, às 17:17:13, Anatoly Burakov escreveu:
> Hi all
> 
> The QT documentation states the following:
> 
> "To make it possible to query at run-time whether a plugin implements a
> given interface, we must use the Q_DECLARE_INTERFACE() macro."
> 
> Does that mean that i HAVE to use the macro (or any other
> interfaces-related macros) to implement plugins in my application?

No, it's not necessary to use that macro. You have to use it only if you want 
to use Qt's QPluginLoader mechanism. 

If you instead decide to roll out your own plugin loader mechanism by going 
directly to QLibrary, you won't need the macro. But you won't be able to use 
QPluginLoader either.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091023/1dab0bad/attachment.bin 


More information about the Qt-interest-old mailing list