Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Main app + Plugins: Best Architecture approach



  • I would like to develop a cross-platform main application that will be expanded in a future by adding new future dynamic libraries. I called this future dynamic libraries as "plugins".

    When the Main Application is launched, it will load all dynamic libraries (plugins) placed in a specific folder and then create in a Main Application top menu new menu items according the loaded plugins.

    Each dynamic library must have your own QT UI and C++ code, and a way to communicate with the Main Application.

    1- What are the QT options to implement this ideas?
    2- Is there a "best way" to do that?

    Thanks,


  • Lifetime Qt Champion

    Hi
    Have a look at
    https://doc.qt.io/Qt-5/qtwidgets-tools-plugandpaint-app-example.html#
    It uses plugins to extend its functionality and sounds pretty much what you are after.


Log in to reply