The qt6 package release application program exe appears unable to locate the program input point? setGeometry@QWidget@@QEAAXHHHH@Z in the dynamic link library solution

An error occurred when packaging the qt program according to the online tutorial today: Unable to locate the program input point? setGeometry@QWidget@@QEAAXHHHH@Z in the dynamic link library

After testing, the basic reason is that the environment where you build the suite is inconsistent with the console where the library support is added

Click on the lower left corner of qt to see your build kit
insert image description here

If your program is compiled based on the MSVC build kit, you need to run the exe exported by the release through the MSVC console

windeployqt xxx.exeinsert image description here
If your program is compiled based on the MinGW build kit, then you need to
package the library through the MinGW console

windeployqt xxx.exe
insert image description here
problem solved!

Guess you like

Origin blog.csdn.net/memorywithyou/article/details/128747080