PDA

View Full Version : making a function call from one project to another



toto
6th July 2011, 10:33
Hi,

I am completely new to Qt. I have a problem with creating references between two Qt GUI projects.
Example:
I have,
Qt_GUI_Project_1
Qt_GUI_Project_2
I want to call some functions in Qt_GUI_Project_2 from Qt_GUI_Project_1.
How do i achieve this?
Another thing would be to setup the widget developed in Qt_GUI_Project_2 and add the widget to the mainwindow in Qt_GUI_Project_1?

thank you for your help!

FelixB
6th July 2011, 10:44
you have to compile qt_gui_project as library and include it in project2

toto
6th July 2011, 13:08
thank you so much
I being a complete beginner find it a little confusing to do this.

can you please refer me some links or explain me to compile a project as a library and include it in another project?