With msvc compiler, error LNK2019: unresolved external symbol _imp_EnableWindow etc. may appear
solution:
Add a line to pro: LIBS += -lUser32
The test program cannot search for our .ds corresponding device information
solution:
Use software for viewing dynamic library dependencies, such as DependenciesGui, to view the library dependencies of the .ds file, and put the missing dynamic library in the .ds file directory
The test program cannot open the GUI of .ds, and an error is reported: This application failed to start because it could not find or load the Qt platform plugin "windows" or similar errors
solution:
在simpleds.cpp的userInterfaceEnable函数中新增代码
Reason: The running environment of the .ds file is inconsistent with the running environment of the test program, so the windows dependent library in the directory of the .ds file may not be found
Purpose: Add the directory where the .ds file is located to the environment where the link library is loaded
plugin cannot be loaded for module "QtQuick.Controls": Cannot load library C:\Windows\twain_32\simpleds\QtQuick\Controls.2\qtquickcontrols2plugin.dll: The specified module could not be found.
solution:
Change the current working directory to the directory where the .ds file is located, and change the working directory back to the directory where the original test program is located when the qml program exits
solution:
mind Map