1、 QT_DIR找不到或者Qt6_DIR找不到
1> [CMake] C:/Users/Administrator/Desktop/test/Table
1> [CMake] CMake Error at C:\Users\Administrator\Desktop\test\Table\CMakeLists.txt:15 (find_package):
1> [CMake] Could not find a package configuration file provided by "QT" with any of
1> [CMake] the following names:
1> [CMake]
1> [CMake] Qt6Config.cmake
1> [CMake] qt6-config.cmake
1> [CMake] Qt5Config.cmake
1> [CMake] qt5-config.cmake
1> [CMake]
1> [CMake] Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to
1> [CMake] a directory containing one of the above files. If "QT" provides a separate
1> [CMake] development package or SDK, be sure it has been installed.
1> [CMake]
1> [CMake]
1> [CMake] -- Configuring incomplete, errors occurred!
解决方式:项目->CMake设置->给QT_DIR设置路径