[Qt-interest] Doubts about the Plugin Framework

Bruno Seabra Lima bslima at telemidia.puc-rio.br
Tue Mar 16 15:32:57 CET 2010


First of all i wanna apologize for my terrible english. That been
said, let's focus to the problem.

I've been searching around and found out that u cant use signal/slot
in a Plugin interface that can be used with the qt plugin mechanism.
First let me resume the scenario:
1 - Im creating a editor to a language, but i wanna my editor to be
able to be extended via plugins.
2 - Those plugins will add a new perspective over the document.
3 - So for each new document created i'll need a new instance of the plugin.
4 - The new document is going to be attached to the new plugin instance.

Since the "limitations" in the QTPlugin mechanism i am modeling the
problem in this way:

1 - I'm defining the interface as a factory to the real object that
handles the signals/slots i need.
But my question is:
I dont recall but i remember to read someplace that the QT Plugin can
only provide one instance of the interface.
Is this really true ? or am i mistaken ?

2 - The signals emitted by the plugin are been connected to slots in a
Thread inside my application.
The question in this case is:
The thread must run the exec() call to receive those signals, right ?
I'll have to make a quequed connection of this objects, right ?

Those are only doubts i wanna to clarify before put into my code.

Thanks in advance for any help. :)




-- 
Bruno Seabra Mendonça Lima
--------------
Bacharel em Ciência da Computação - UFMA
Mestrando da PUC-Rio
Pesquisador Laboratório Telemidia (PUC-Rio)
-------------
www.bslima.com




More information about the Qt-interest-old mailing list