Copy files and folders from directory in QT pro file

我怕爱的太早我们不能终老 提交于 2019-12-13 03:11:33

问题


I want to copy all the files and directory from source folder to some other directory

the code I tried is below mentioned

BINARY_PATH = $$PWD/../Bin/
RESOURCE_PATH = $$PWD/../resources/

QT += core
QT -= gui

CONFIG += c++11

TARGET = untitled
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

SOURCES += main.cpp

win32 {

QMAKE_POST_LINK +=$$quote(cmd /c xcopy /s /q /y /i $${RESOURCE_PATH} $${BINARY_PATH}$$escape_expand(\n\t))

}

RESOURCE_PATH contain 2 files and 1 folder

The above code is not copying any files or filders from source directory. I am trying on windows 7

来源:https://stackoverflow.com/questions/45751924/copy-files-and-folders-from-directory-in-qt-pro-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!