use widget as a shared library and update gui from main (non-qt) application
-
wrote on 10 Mar 2023, 16:57 last edited by
Hi, I am building an application which requires a graphical user interface. I wonder if there is a possibility to build QT into a shared library and be linked to my application, so that the main application could just call the APIs provided such as updatePlots etc.
The motivation behind is that, QT is built independently as a shared library, and would be easily linked as a .so or .dylib file in the main application.
-
Hi, I am building an application which requires a graphical user interface. I wonder if there is a possibility to build QT into a shared library and be linked to my application, so that the main application could just call the APIs provided such as updatePlots etc.
The motivation behind is that, QT is built independently as a shared library, and would be easily linked as a .so or .dylib file in the main application.
wrote on 10 Mar 2023, 17:32 last edited by JoeCFD 3 Oct 2023, 17:34@xiaoyingwang No, you have to build a Qt GUI app which has its own event loops and link your app to the GUI app. Qt GUI app has to be the main app. Build your app to so or dll and link it the GUI app.
-
Hi, I am building an application which requires a graphical user interface. I wonder if there is a possibility to build QT into a shared library and be linked to my application, so that the main application could just call the APIs provided such as updatePlots etc.
The motivation behind is that, QT is built independently as a shared library, and would be easily linked as a .so or .dylib file in the main application.
@xiaoyingwang hi, it might be doable but it's not guaranteed to work on all platforms.
See this Stack Overflow thread.
1/3