PDA

View Full Version : Load a form DLL/Plugin



Silenzio
4th February 2017, 08:23
Hello to everyone,

I'm new to this world(Qt), I have a application wrote in. An unknown version of Qt.
This app uses DLL to load plug-in.
Can anyone can explain to me or give me a reference(tutorial or such) to learn to create DLL who exports QDialog/QWidget/QForms.

Thank You in advance.

PS. : I explored the forum for 3 days a no items matched my search params.
PPS. : any help will be very appreciated.

anda_skoa
4th February 2017, 10:07
First you need to find out what the application's plugin mechanism expects.

Once you have that, your plugin can basically do whatever Qt application code can do.

Cheers,
_

Silenzio
4th February 2017, 16:00
Thanks for.the answer but the problem is that, I need to quickly develop a plugin, wrapped in a dll but seems not exist a tutorial for that and I'm a little bit stuck. Hope in anyone reply.

anda_skoa
5th February 2017, 07:57
A plugin is a dynamically linked library, a DLL on Windows.
QtCreator has a project template for that, called "C++ library".

In a qmake .pro file that is


TEMPLATE = lib
CONFIG += plugin


The rest is up to the plugin interface used by the host application.

Cheers,
_