Deploy Qt5 QML application

前端 未结 5 1607
广开言路
广开言路 2020-12-03 11:49

To test QML deployment I\'ve created a very simple QML application. Here is the code:

main.cpp

#include 

        
5条回答
  •  无人及你
    2020-12-03 12:21

    If you use MinGW, then try to copy all folders from folders qml and plugins to directory with your program. Also copy libraries: icudt52.dll, icuin52.dll, icuuc52.dll, libgcc_s_dw2-1.dll, libstdc++-6.dll, libwinpthread-1.dll, Qt5Core.dll, Qt5Gui.dll, Qt5Network.dll, Qt5Qml.dll, Qt5Quick.dll, Qt5Svg.dll, Qt5Widgets.dll from bin

    Eventually the directory will look like this:

    • Enginio
    • imageformats
    • platforms
    • Qt
    • QtGraphicalEffects
    • QtPositioning
    • QtQml
    • QtQuick
    • QtQuick.2
    • QtSensors
    • QtWebKit
    • QtWinExtras
    • icudt52.dll
    • icuin52.dll
    • icuuc52.dll
    • libgcc_s_dw2-1.dll
    • libstdc++-6.dll
    • libwinpthread-1.dll
    • Qt5Core.dll
    • Qt5Gui.dll
    • Qt5Network.dll
    • Qt5Qml.dll
    • Qt5Quick.dll
    • Qt5Svg.dll
    • Qt5Widgets.dll
    • YOUR_PROGRAM.exe

    This way works on WindowsXP/Win7 where Qt was not installed.

提交回复
热议问题