1. Run the program quit unexpectedly
Qt SDK, dll call camera, the compiler uses vc2015, call the dll using #pragma comment mode, switch to add a reference to this library file in the .pro file, the program runs normally.
#ifdef _WIN64 #pragma comment(lib,"..\\ScanHC\\three_parts\\HClass\\SDK\\Camera\\KSJ\\KSJApi.Lib\\KSJApi64.lib") #else #pragma comment(lib,"..\\ScanHC\\three_parts\\HClass\\SDK\\Camera\\KSJ\\KSJApi.Lib\\KSJApi.lib") #endif//_WIN64
Solution: copy library files used to run the compiled file directory, such as debug directory, the program execution to normal.