Qt源码有进不去的吗
-
用QtCreator调试Qt程序,进不去Qt源码啊,安装时已经选中了Src了,有解决方法吗
-
用QtCreator调试Qt程序,进不去Qt源码啊,安装时已经选中了Src了,有解决方法吗
This has been asked before and answered by by Tobias @hunger :
F2 is "follow symbol under cursor". That should get you to the right place, independently of whether the code was provided by some included header file or not. Your own projects will most likely not include the Qt source files though, so you can not jump into them directly (they are not referenced from the project, so they are not there for creator). So during editing you will not be able to just jump straight into the Qt source code. Debugging will of course work (see previous answer, buit rebuilding your own Qt shouldn't actually be necessary). You can open the projects.pro file found in the Qt sources as an additional project in creator. Then you can at least use the locator (Ctrl-K) to look up methods, etc. Hope this helps...
-
This has been asked before and answered by by Tobias @hunger :
F2 is "follow symbol under cursor". That should get you to the right place, independently of whether the code was provided by some included header file or not. Your own projects will most likely not include the Qt source files though, so you can not jump into them directly (they are not referenced from the project, so they are not there for creator). So during editing you will not be able to just jump straight into the Qt source code. Debugging will of course work (see previous answer, buit rebuilding your own Qt shouldn't actually be necessary). You can open the projects.pro file found in the Qt sources as an additional project in creator. Then you can at least use the locator (Ctrl-K) to look up methods, etc. Hope this helps...
@Eddy
Thank you for your answer.
However, I have add the Qt Src directory. And I also downloaded .pdb files for Qt5 and added them in Qt creator. Then I still can't step into the qt source file. -
@ZiJia
在QT5.5.0和msvc2013下,不管是qtcreator还是vs,都进不去源码,该加的源文件、调试符号都加了,还是不行。
最后估计只能重新编译Qt源码了 -
需要源码编译Qt的源码才行呢。
你想看源码调试情况,估计是找到了Qt的BUG。首先到
bugreports.qt.io去找找吧。 -
需要源码编译Qt的源码才行呢。
你想看源码调试情况,估计是找到了Qt的BUG。首先到
bugreports.qt.io去找找吧。@jiancaiyang
谢谢,换了一个Qt版本,解决了源码不能进的问题 -
是的,还有一点,就是Qt5.5.0也算很老的了,现在都Qt5.9.1了。
-
是的,还有一点,就是Qt5.5.0也算很老的了,现在都Qt5.9.1了。
@jiancaiyang
这个确实 -
@TobyYi
设置了,但是5.5.0的就是不行,调试符号我也重新下载并添加,也是不行