[Qt-interest] What is the Use of QPlugin Loader

Malyushytsky, Alex alex at wai.com
Thu Oct 20 22:21:15 CEST 2011


I am not sure I understand the question.
I believe http://doc.qt.nokia.com/latest/qpluginloader.html
is clear :

"The QPluginLoader class loads a plugin at run-time"

...A Qt plugin is stored in a shared library (a DLL) and offers these benefits over shared libraries accessed using QLibrary<http://doc.qt.nokia.com/latest/qlibrary.html>:

 *   QPluginLoader checks that a plugin is linked against the same version of Qt as the application.
 *   QPluginLoader provides direct access to a root component object (instance<http://doc.qt.nokia.com/latest/qpluginloader.html#instance>()), instead of forcing you to resolve a C function manually."
Alex




From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Kamatchi Lakshmanan -ERS, HCL Tech
Sent: Thursday, October 20, 2011 3:50 AM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] What is the Use of QPlugin Loader

Hi All,
I want to know why QPluginLoader is used.
For what purpose we use QPluginLoader.
QLibrary is mainly used to resolve symbols. But i dono y QPluginLoader mainly used for.
instance() method in QPluginLoader  returns QObject Pointer.
Can we get the methods present inside library file using this QObject pointer.

I need some idea.

Thanks ,
Kamatchi




________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111020/deecf748/attachment.html 


More information about the Qt-interest-old mailing list