QT error: undefined reference to `__imp_SetupDiGetClassDevsW' 解决方法: 添加静态库: 添加后,pro会多一行: win32: LIBS += -lSetupAPI