The ultimate solution QtQML applications published under Windows fails (can not open & interface does not display) of

First of all, the next picture shows the use of the QtQuick only Controls& Particle& GraphicalEffects& Multimediaafter release and other controls to get the application directory structure:
Here Insert Picture Description
In general, using the official description of the way qt (ie deployqt plus -qmldir and parameters) are still possible application program interface does not display completely unresponsive or double phenomenon, which is due to the configuration program that comes with dll not fully copy all files with the program required to release directory. to this end:

  1. Our first release compiled application files get placed [Qt installation directory] \ Qt5.12.4 \ 5.12.4 \ mingw73_64 (here to publish using the file mingW7.3_64 bit compile an example, the actual compiler used in accordance with their own version to bin files under adjustment) directory folder to test whether the normal operation of the program. If you can run -> 2 No -> replace what the build environment to be tested again in QtCreator, if possible go to step two, still fails to consider the relative path and other documents referenced problems.
  2. All .dll files bin folder (except d have a suffix, such as Qt5Sqld.dll, these are the debug configuration files used) copied to the release directory, use component file you will qml clip file copy in the past ( according to judge whether import), delete the debug dll file. Copy under the plugin folder (usually a simple copy of the program imageformates and platform can be, depending on whether you use the audio files & sqlite support, etc., copies of the corresponding name of the folder) to place the release directory, then click on Run, if you have normal, you can further simplify and qml out xxxxd.dll file folders (such as controls2 various style components) are then packaged and released unused to.
  3. If you can not run, then copy the complete plugin & qml folder contents to publish a directory, if you want to streamline the test individually delete folders, or delete debug dll file can be packaged and released
  4. If the program is based on mingw, you can try to replace windeployqt packaged Qt5Core.dll files MinGW bin directory of the same name in the file.
Published 24 original articles · won praise 14 · views 6151

Guess you like

Origin blog.csdn.net/qq_35587463/article/details/93890951