Extensible application using Qt

Houss_gc

I am working on an application which interact with a database and construct reports, I want this application to be extensible and I can in the future to integrate custom report builders to the application as plugins.

I have some question about the plugin architecture supported by Qt:

  • Can I load the plugins in there own processes ?

  • How could I send some custom QML type from the plugin to main application and hook some event handlers on it.

Another question: is there any framework to develop service based qt application ?

Felix

Can I load the plugins in there own processes ?

Not with the plugin mechanism (QPluginLoader). The plugin mechanism dynamically loads libraries (different threads are possible). However, your plugins can be a normal application, that gets started by your main application via QProcess, and exchange data via stdin/stdout (or other IPC mechanisms)

How could I send some custom QML type from the plugin to main application and hook some event handlers on it.

In case you use normal plugins, simply add method that returns the created QML object. Have a look at:https://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html#loading-qml-objects-from-c

In case you want to use the multi process version, it gets slightly more complicated. Pass the QML code via stdout and create it in your main application. Pass some "communicator" object to this created QML object, so that the QML type can send back data via that communicator to it's original process.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Rails: configurable extensible modular application

From Dev

how to configure Extensible in extjs Application

From Dev

Using Qt codes in Android application

From Dev

Using a dll in a qt application program

From Dev

What would be the most scalable/extensible way to design an error messaging system for an application? I will be using Perl.

From Dev

Golang auto-including extensible application

From Dev

How to write a ruby application to be extensible via plugins

From Dev

using Qt in non GUI application, pros and cons?

From Dev

Using the closeEvent in a qt application does not close it

From Dev

Using KDE System Theme in Pure Qt Application

From Dev

Using theme for my Qt widget application

From Dev

Compiling standalone Qt application using MinGW

From Dev

Video Streaming on Qt Linux application using RTP

From Dev

Build Qt application for Linux in Windows using Qt Creator

From Dev

Build Qt application for Linux in Windows using Qt Creator

From Dev

Debug Qt application on ubuntu with root permission using qt creator

From Dev

Extensible architecture using Abstract Factory and template metaprogramming

From Dev

Can I create an extensible (through additional custom plugins) application on Haskell?

From Dev

Extensible/adaptable Java EE application: interfaces vs interceptors and decorators

From Dev

Using Intel Vtune to profile Application from Qt Creator

From Dev

How to transfer the image drawn using Qt Paint Application to Mat openCV

From Dev

Using Qt Installer Framework to create my Application Installer

From Dev

Compiling a Qt Application using Dev C++ on Windows

From Dev

Error when using AsmJit within a Qt GUI Application

From Dev

Error when trying to deploy Qt application using shared libraries

From Dev

Unable to get a custom helpfile to work from inside a Qt Application using Qt Assistant

From Dev

Qt Application switches focus to a different application after using a file open dialog

From Dev

Set application theme in Qt

From Dev

how to restart an application in qt?

Related Related

  1. 1

    Rails: configurable extensible modular application

  2. 2

    how to configure Extensible in extjs Application

  3. 3

    Using Qt codes in Android application

  4. 4

    Using a dll in a qt application program

  5. 5

    What would be the most scalable/extensible way to design an error messaging system for an application? I will be using Perl.

  6. 6

    Golang auto-including extensible application

  7. 7

    How to write a ruby application to be extensible via plugins

  8. 8

    using Qt in non GUI application, pros and cons?

  9. 9

    Using the closeEvent in a qt application does not close it

  10. 10

    Using KDE System Theme in Pure Qt Application

  11. 11

    Using theme for my Qt widget application

  12. 12

    Compiling standalone Qt application using MinGW

  13. 13

    Video Streaming on Qt Linux application using RTP

  14. 14

    Build Qt application for Linux in Windows using Qt Creator

  15. 15

    Build Qt application for Linux in Windows using Qt Creator

  16. 16

    Debug Qt application on ubuntu with root permission using qt creator

  17. 17

    Extensible architecture using Abstract Factory and template metaprogramming

  18. 18

    Can I create an extensible (through additional custom plugins) application on Haskell?

  19. 19

    Extensible/adaptable Java EE application: interfaces vs interceptors and decorators

  20. 20

    Using Intel Vtune to profile Application from Qt Creator

  21. 21

    How to transfer the image drawn using Qt Paint Application to Mat openCV

  22. 22

    Using Qt Installer Framework to create my Application Installer

  23. 23

    Compiling a Qt Application using Dev C++ on Windows

  24. 24

    Error when using AsmJit within a Qt GUI Application

  25. 25

    Error when trying to deploy Qt application using shared libraries

  26. 26

    Unable to get a custom helpfile to work from inside a Qt Application using Qt Assistant

  27. 27

    Qt Application switches focus to a different application after using a file open dialog

  28. 28

    Set application theme in Qt

  29. 29

    how to restart an application in qt?

HotTag

Archive