Qt-interest Archive, February 2008
Qt Plugins for Plugins (Application extensions)
Message 1 in thread
Hi, I am currently evaluating Qt for an application platform and had a few
questions as I am not very familiar with the Qt Plugin platform.
I want to build a multi-purpose platform that acts as a plugin loader for
"mini-applications" and those small apps are likely to also have plugins of
their own.
My question is, is the Qt plugin interface well suited for this application?
If not, is there a better alternative that would make more sense?
Thanks,
- Simon Berube
P.S. : The main reason for this design is that we want to be able to have
other people easily extend the application without needinfg to muck around
the application's source code. Furthermore, since this is for an engineering
application with a rather long life expectency the ability to load an "old"
version of an applet and a "new" version at the same time is important.
Message 2 in thread
Simon Berube wrote:
>
> Hi, I am currently evaluating Qt for an application platform and had a
> few questions as I am not very familiar with the Qt Plugin platform.
>
> I want to build a multi-purpose platform that acts as a plugin loader
> for "mini-applications" and those small apps are likely to also have
> plugins of their own.
>
> My question is, is the Qt plugin interface well suited for this
> application? If not, is there a better alternative that would make
> more sense?
>
I have Qt Plugins that load other Qt Plugins via QPluginLoader. It's
easy and "just works". Just remember if 3rd parties are going to be
writing plugins you will be requiring them to link against Qt and have a
Qt license.
--Justin
begin:vcard
begin:vcard
fn:Justin Noel
n:Noel;Justin
org:ICS;Engineering
adr:;;54B Middlesex Trpk.;Bedford;MA;01730;USA
email;internet:justin@xxxxxxx
title:Sr. Consulting Engineer / Certified Qt Instructor
tel;work:617-621-0060
x-mozilla-html:FALSE
url:www.ics.com
version:2.1
end:vcard
Message 3 in thread
And do not forget, to use the right plugin-name for loading with
QPluginLoader, when you work under Windows and use Visual Studio 2005,
if not you'll get runtime errors and your plugin is not loaded....
use :
QtPluginLoader Loader;
#ifdef NDEBUG
PluginName=/path/to/Plugin/NameofPluginRelease.dll
#else
PluginName=/path/to/Plugin/NameofPluginDebug.dll
#endif
if (Loader.load(PluginName) == true)
success...
I actually had this problem and documentation (argmpf!!?????!!!*) does
not inform you very well....
Regards,
Peter
Justin Noel schrieb:
> Simon Berube wrote:
>>
>> Hi, I am currently evaluating Qt for an application platform and had a
>> few questions as I am not very familiar with the Qt Plugin platform.
>>
>> I want to build a multi-purpose platform that acts as a plugin loader
>> for "mini-applications" and those small apps are likely to also have
>> plugins of their own.
>>
>> My question is, is the Qt plugin interface well suited for this
>> application? If not, is there a better alternative that would make
>> more sense?
>>
>
> I have Qt Plugins that load other Qt Plugins via QPluginLoader. It's
> easy and "just works". Just remember if 3rd parties are going to be
> writing plugins you will be requiring them to link against Qt and have a
> Qt license.
>
> --Justin
--
[ signature omitted ]