Results 1 to 2 of 2

Thread: using functions in different forms

  1. #1
    Join Date
    Dec 2007
    Posts
    4
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default using functions in different forms

    i wrote all the needed function definitions in a file named files.c

    i want to use these functions in many forms in a project.

    when i try to use functions in each form by using import "files.c" statement,
    error is shown(redeclaration of function)


    please tell me how to call functions in different forms

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: using functions in different forms

    See Wikipedia: Header file.
    J-P Nurmi

Similar Threads

  1. File system utility with more functions than QDir
    By izico in forum Qt Programming
    Replies: 3
    Last Post: 22nd December 2007, 14:44
  2. Dynamically add functions to qt program
    By sincnarf in forum Qt Programming
    Replies: 31
    Last Post: 22nd September 2007, 03:55
  3. Replies: 12
    Last Post: 14th August 2007, 17:54
  4. Replies: 2
    Last Post: 16th March 2007, 09:04
  5. Qt/Embedded Installation error during make
    By mahe2310 in forum Installation and Deployment
    Replies: 5
    Last Post: 7th September 2006, 04:05

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.