Home > Mobile >  Qt package program, copy after packaged inside the file, the eldest brother to give an idea
Qt package program, copy after packaged inside the file, the eldest brother to give an idea

Time:10-10

, click a button inside qt project after copying the file to disk C, and this should be copied files and the software is packaged into a. Exe executable file, so I have a question, what should I write code to copy the file in your program?

CodePudding user response:

QFile: : copy (sourceDir toDir)

CodePudding user response:

The
reference 1/f, grass response: nether
QFile: : copy (sourceDir toDir)

I am copying the file inside out after packaging, this also can? The path to how should choose? Because the path in a program before I print the current procedure is.../aa. Exe, the. Exe was produced after packaging, I want to copy the file inside out

CodePudding user response:

Released as resources?

CodePudding user response:

refer to the second floor Mr. Ha ha ha response:
Quote: refer to 1st floor grass response: nether
QFile: : copy (sourceDir toDir)

I am copying the file inside out after packaging, this also can? The path to how should choose? Because the path in a program before I print the current procedure is.../aa. Exe, the. Exe was produced after packaging, I want to copy the file inside out
what tools you use package, playing with the tool corresponding unpack tools, (when you pack the tools packaged inside) in qt in the command execution way to unpack the copy

CodePudding user response:

Using the Enigma Virtual, Bo packaging, recently busy other things, are free to try again, thank you

CodePudding user response:

reference ooolinux reply: 3/f
released as resources?

Yes, is this meaning, brother have good Suggestions

CodePudding user response:

reference today also to its feet, 4/f, oh full response:
Quote: refer to the second floor Mr. Ha ha ha response:
Quote: refer to 1st floor grass response: nether
QFile: : copy (sourceDir toDir)

I am copying the file inside out after packaging, this also can? The path to how should choose? Because the path in a program before I print the current procedure is.../aa. Exe, the. Exe was produced after packaging, I want to copy the file inside out
what tools you use package, playing with the tool corresponding unpack tools, (when you pack the tools packaged inside) in qt unpacking in command execution way copy

Using the Enigma Virtual, Bo packaging, recently busy other things, are free to try again, thank you

CodePudding user response:

refer to 6th floor Mr. Ha ha ha response:
Quote: refer to the third floor ooolinux response:
released as resources?

Yes, is this meaning, brother do you have any good Suggestions


Look baidu,

CodePudding user response:

In fact not so troublesome, release, after windeployqt will put all documents on the inside, thank you for your help!
  •  Tags:  
  • Qt
  • Related