Jump to content
  • Advertisement
Sign in to follow this  
Misery

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

This topic is 2050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!