Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Copy files to Build directory
Qt 6.11 is out! See what's new in the release blog

Copy files to Build directory

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ecir.hana
    wrote on last edited by
    #1

    Hello,

    I created a project in Qt Creator (2.6.2) and wrote some source code (.h/.cpp). When I build/run the project, Creator creates new directories for Debug or Release builds.

    Please, I have three questions:

    • how to copy some files into the project directory? I can copy those files in OS as usual, but Creator wont show the files in "Active Project Pane". I know I can add a library to the project by right clicking on the .pro file but the files I want to add are not libraries... Also, I cannot put those files to .qrc as the files are not meant for Qt but for a library I'm also including.

    • If I somehow managed to copy some files to the project directory, how to make them to be automatically copied to those Debug or Release directories, next to the application executable?

    • I would like to organize those files by putting them into a directory. Is it possible to copy the whole directory or do I have to manually specify every file I want to copy over?

    If it makes my life easier I could upgrade to the newly released Qt Creator 2.7...

    Thanks in advance!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      This is a problem of qmake, not Qt Creator. You could probably play around with DEPLOYMENT and QMAKE_POST_LINK variables, but there is no easy and straightforward way that I know about.

      (Z(:^

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ecir.hana
        wrote on last edited by
        #3

        According to the docs, DEPLOYMENT is used in Windows CE only. But QMAKE_POST_LINK looks interesting, thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved