1.Package exe program
Set the application icon, add RC_ICONS = icon name.ico in Qt pro, and go to the Internet to find an online ico conversion tool.
1.Switch the compilation mode of qt to the release version
2. After compiling and running, find the location where you put the code, the release version
3. Create a new empty folder, copy the exe program separately and put it into the empty folder
4. Open the command line window of Qt, windeployqt + the exe file path in the empty file, some related configuration files will be automatically linked. Without the corresponding configuration files, a single exe cannot run.
5. Use the packaging software Enigma Virtual Box for packaging
2. Package Android programs
Generally speaking, Qt does not download the configuration file corresponding to Android. Open Qt-Options-Tools-Devices, install java's JDK and Android's SDK and NDK. Generally speaking, after configuring Android studio first, there will be no problem.
When creating a new project, choose the Android compiler and pay attention to it yourself.
Choose between debug and release versions
It can be used normally after connecting to a mobile phone or ARM development board via USB.