QT program is packaged into Window running software

Function description:

  1. The written QT program is packaged into software that runs directly on windows

1. The QT program is packaged into Window operating software

①Switch the working mode to release mode, and then compile
2. Release mode: Basically no debugging information
3. Debug mode: Contains a lot of debugging information
Insert picture description here
②Find the folder built in release mode
③Modify the icon and
place the icon directly under the project directory (Note that it can only be the icon of .ico)
Add the following code under the project file:
Insert picture description here
compile and run.
④For packet operation, you need to use the QT console

  1. Create folder
  2. Copy the .exe file in the project to the created folder
  3. Go to the created folder in the QT console
  4. Execute on the console: windeployqt timer.exe (where: timer.exe is)
    Insert picture description here

Guess you like

Origin blog.csdn.net/qq_37120496/article/details/115346720