Results 1 to 3 of 3

Thread: making a function call from one project to another

  1. #1
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Windows

    Default making a function call from one project to another

    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!

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: making a function call from one project to another

    you have to compile qt_gui_project as library and include it in project2

  3. The following user says thank you to FelixB for this useful post:

    toto (6th July 2011)

  4. #3
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: making a function call from one project to another

    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?

Similar Threads

  1. making a call using my PC + Modem
    By coolk in forum Qt Programming
    Replies: 1
    Last Post: 25th November 2010, 06:58
  2. Qt function call in vb.net
    By abghosh in forum Qt Programming
    Replies: 7
    Last Post: 6th March 2010, 17:00
  3. making new project qt4
    By !Ci in forum Qt Programming
    Replies: 1
    Last Post: 18th June 2009, 13:32
  4. making Eclipse recognize project dependnecies with qmake?
    By akos.maroy in forum Installation and Deployment
    Replies: 5
    Last Post: 20th January 2009, 13:05
  5. function call
    By Walsi in forum Qt Programming
    Replies: 3
    Last Post: 12th June 2007, 09:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.