Hi, Well, the way we are doing it is, in the Project settings, build tab, we turn off "Shadow build:", then it appears to respect the paths in the .pro files, as so:
Release:LIBS += ../../../../build/lib/release/libCustomWidgetLib.a Release:DESTDIR = ../../../../build/bin/release Release:OBJECTS_DIR = ../../../../build/bin/release/.obj/$$TARGET Release:MOC_DIR = ../../../../build/bin/release/.moc/$$TARGET Release:RCC_DIR = ../../../../build/bin/release/.rcc/$$TARGET Release:UI_DIR = ../../../../build/bin/release/.ui/$$TARGET Debug:LIBS += ../../../../build/lib/debug/libCustomWidgetLib.a Debug:DESTDIR = ../../../../build/bin/debug Debug:OBJECTS_DIR = ../../../../build/bin/debug/.obj/$$TARGET Debug:MOC_DIR = ../../../../build/bin/debug/.moc/$$TARGET Debug:RCC_DIR = ../../../../build/bin/debug/.rcc/$$TARGET Debug:UI_DIR = ../../../../build/bin/debug/.ui/$$TARGET We add these ourselves, they don't come from the project wizard, but qmake seems to respect them. Of course you change them to wherever you want your build, libs etc. Then, back in the Project settings, now go to the Run Settings tab, and you have to tell it to run the executable from the target build directory you set up above. So we add a new Run Configuration and set the executable and working directory paths to where we want them. Then we delete the old, default one that pointed to the wrong location, since you can't edit it to set its executable path. I hope this helps a little. Carlos Carlos Smith Principal Software Engineer Stonewedge Corporation -----Original Message----- From: qt-creator-boun...@trolltech.com [mailto:qt-creator-boun...@trolltech.com] On Behalf Of Jens Saathoff Sent: Friday, December 03, 2010 12:03 PM To: qt-creator@trolltech.com Subject: [Qt-creator] How to modify output-directory of exe or how to set a working directory? Hi! I'm using QTCreator 2.0.1 with Qt 4.7 on a Windows 7 64-Bit Machine. I want to set a working directory, but if i try to access files that are inside the working-dir it doesn't work because the exe is in "MyProject-build-desktop". Is it possible to get the exe output to a directory of choice or how to set the working-directory so that the "currentPath()" of my exe is in "myfolder" ? Sorry, i'm very new to Qt and QtCreator. Thank you very much! Jens Saathoff _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator This electronic message is intended only for the use of the individual or entity named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you have received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual or entity named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you have received this message in error, please notify the sender immediately. _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator