Qt and C++ QtPlugin - what kind of plugins can be handled?

Started by
1 comment, last by Misery 10 years, 1 month ago

Hello,

I am about to create an application. I would like to keep it in modular architecture and to work on Linux, Mac and Windows. I want to use Qt library in general.

The most of the functionality of this application will be stored in plugins, which for some reasons is the best approach here. I am used to create plugins on C++. However I am considering to use Qt plugin management system.

My questions are:

  1. Can this system be used to manage any kind of plugins? What I mean is that most (all I've run into) examples cover plugins regarding Qt styles and Qt elements, etc. No general plugin managemet like "Foo" plugin doing "hello world".

  2. Are there any advantages of "manually created" pure C++ plugin system over Qt plugin system? Should I rather consider using pure C++ approach?

Regards

Misery

Advertisement

I believe QPlugin just provides a platform-independant wrapper around what is DLLs on Windows. The advantage of using it over the C++ system (by which I assume you mean the Win32 system) is your code will work on multiple platforms. Its unlikely the wrapper has any significant overhead and Qt generally works best if you commit to it thoroughly so I'd say use it.

Thank you. :]

This topic is closed to new replies.

Advertisement