Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

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   

354
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



#2 Aardvajk   Members   

13074
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   

354
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.