CMakeLists.txt中 添加 ①find_package(Qt6 REQUIRED COMPONENTS Charts) ②target_link_libraries(HM_0226 PUBLIC Qt::Charts )