Qt 在应用中调试Qt框架源码

439 阅读1分钟

效果

image.png

环境

  • CMake
  • Qt Sources
  • Qt Debug Information Files
  • Clion

步骤

1. 下载

使用Qt Maintenance Tool 下载 Qt SourcesDebug Information Files

提示
如果使用其它方式下载。注意保存的目录
Qt Sources : D:\Qt\6.5.1\Src
Qt Debug Information Files: D:\Qt\6.5.1\msvc2019_64\bin

2. CMakeLists.txt

添加

include_directories(D:/Qt/6.5.1/Src)