How to run a Qt Program without Qt itself being installed?

后端 未结 8 955
广开言路
广开言路 2021-02-09 07:00

I have written a program with Qt5.3.1 and run it on my development machine where it works fine. I copied all necessary .dll files into the folder where my .exe is. These are:<

相关标签:
8条回答
  • 2021-02-09 07:27

    You should also copy {QTSDK}/plugins to directory where you executable located. Then create qt.conf in the same place (with executable) with the following content:

    [Paths]
    Plugins=plugins
    

    Thеn, run your program. I did the same on linux.

    0 讨论(0)
  • 2021-02-09 07:28

    In your application folder hold down SHIFT key and right click from mouse. You will see - Open command window here

    1. Click Open command window here
    2. TYPE windeployqt.exe app_name.exe --parameters and HIT ENTER

    Example:

    windeployqt.exe APP_NAME.EXE --release --no-translations --no-system-d3d-compiler --no-compiler-runtime --no-angle --no-opengl-sw
    
    0 讨论(0)
提交回复
热议问题