Results 1 to 7 of 7

Thread: Copy a Qt project to another directory

  1. #1
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Copy a Qt project to another directory

    Hi all,

    I would like to copy a Qt project (hellogl for example) to another directory after compilation. Which files (*.cpp, *.h, ...) and subdirectories (\release, ...?) do I need and which have to be deleted?

    Greetings,

    Michael

  2. #2
    Join Date
    Dec 2009
    Location
    Mexico
    Posts
    26
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Copy a Qt project to another directory

    files that are not necessary are:
    • *.pro.user
    • *.o
    • Makefile
    • moc_****.cpp

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

    QtFan19 (30th December 2009)

  4. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Copy a Qt project to another directory

    run 'make clean' and copy the result.

  5. #4
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Copy a Qt project to another directory

    Quote Originally Posted by fatjuicymole View Post
    run 'make clean' and copy the result.
    or rather 'make distclean'.

    But I would say that all you need is a .pro file and files listed in this .pro file (in HEADERS, SOURCES, FORMS, RESOURCES, ...)
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  6. The following user says thank you to faldzip for this useful post:

    QtFan19 (30th December 2009)

  7. #5
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Copy a Qt project to another directory

    Hi all,

    thank you very much for your fast replies .

    I´m a beginner in C++ and Qt. So I have to ask how can I run make under Windows XP (SP3)?

    I´ve tried it under Start->Qt->Qt Command Prompt, but the system does not find make or make clean (qmake runs). What do I have to do?

    Greetings,

    Michael

  8. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Copy a Qt project to another directory

    Quote Originally Posted by QtFan19 View Post
    I´m a beginner in C++ and Qt.
    then put your questions in Newbie sub-forum.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  9. #7
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Copy a Qt project to another directory

    @ Faldzip

    But I would say that all you need is a .pro file and files listed in this .pro file
    I´ve tried this and it works.

    Thanks,

    Michael

Similar Threads

  1. some questions about install qwt
    By dycjiaoda in forum Qwt
    Replies: 1
    Last Post: 8th February 2011, 01:37
  2. Translation tools problems
    By MarkoSan in forum Qt Tools
    Replies: 23
    Last Post: 22nd August 2010, 00:43
  3. Replies: 7
    Last Post: 2nd November 2009, 19:07
  4. Copy Directory Recusively
    By hkothari in forum Qt Programming
    Replies: 4
    Last Post: 22nd August 2009, 12:43
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

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
  •  
Qt is a trademark of The Qt Company.