Jump to content

  • Log In with Google      Sign In   
  • Create Account

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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Misery   Members   -  Reputation: 317

Like
0Likes
Like

Posted 06 March 2014 - 05:50 AM

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



Sponsor:

#2 Aardvajk   Crossbones+   -  Reputation: 5982

Like
2Likes
Like

Posted 06 March 2014 - 08:13 AM

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.



#3 Misery   Members   -  Reputation: 317

Like
0Likes
Like

Posted 07 March 2014 - 03:37 AM

Thank you. :]






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS