QT在windows下Debug怎么样才可以查看QT 源代码?

xinai0521 2012-02-16 11:43:05
刚开始学习QT,碰到一个问题:
在windows下DEBUG的时候,不能查看到QT库的源代码,只能看汇编代码啊?
查了半天,也无法解决,请大虾帮忙一下,谢谢。
...全文
463 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
xinai0521 2012-02-20
  • 打赏
  • 举报
回复
楼主,是否打开了 Maintain Qt SDK 窗口?如果没有,请在windows “开始”菜单中寻找
我晕,我没有笨这个地步。。。。


我用 SDK maintain Tool open 根本找不到这个选项。

”Install seclected components“

不过我解决了。
1:rebuild SDK source package


2:configure "Build environment"--> select "Clear system environment"->configure "PATH" to the first step build library.






joy_zhou 2012-02-19
  • 打赏
  • 举报
回复
楼主,是否打开了 Maintain Qt SDK 窗口?如果没有,请在windows “开始”菜单中寻找。
joy_zhou 2012-02-19
  • 打赏
  • 举报
回复
楼主,是否打开 Maintain Qt SDK 窗口?如果没有,请在windows “开始”菜单中寻找。
xinai0521 2012-02-18
  • 打赏
  • 举报
回复
这个问题还没有解决。。我自已再顶一顶。
xinai0521 2012-02-18
  • 打赏
  • 举报
回复
6,7大哥,我没有办法看到"Qt Sources->Qt 4.8.0 Sources"这些选项。
SunFrank1987 2012-02-17
  • 打赏
  • 举报
回复
环境没配好把!
joy_zhou 2012-02-17
  • 打赏
  • 举报
回复
如果是windows系统,点击:
开始->程序->QtSDK->Maintain Qt SDK,
打开 Maintain Qt SDK 窗口,选中 Install seclected components,如下图:

在窗口中选择:Miscellaneous->Qt Sources->Qt 4.8.0 Sources

点击 Next 按钮,继续点击.......继续点击......,电脑就自动下载源代码到合适的位置,再启动 QtCreator 时,就能够跟踪到 Qt 源码中了。
joy_zhou 2012-02-17
  • 打赏
  • 举报
回复
如果是windows系统,点击:
开始->程序->QtSDK->Maintain Qt SDK,
打开 Maintain Qt SDK 窗口(可惜不知如何上传图片),选中 Install seclected components,
在窗口中选择:package manager->Miscellaneous->Qt Sources->Qt 4.8.0 Sources

点击 Next 按钮,继续点击.......继续点击......,电脑就自动下载源代码到合适的位置,再启动 QtCreator 时,就能够跟踪到 Qt 源码中了。
joy_zhou 2012-02-17
  • 打赏
  • 举报
回复
找不到 *.pdb 文件。
xinai0521 2012-02-17
  • 打赏
  • 举报
回复
说明一下,我是用QT Debugger.

是不是要把QT 源代码重新在windows compile一下吗?


xinai0521 2012-02-17
  • 打赏
  • 举报
回复
楼上兄弟们。。。。
环境不对?DEBUG坏境不对?
能否给点儿具体答案。上QT网站查了一下,得到一个结果。

Windows version,Can’t view QT libaray Source code when debug?

When selecting the “default” option when installing the Qt SDK, the sources are not included in the installation. You need to choose the “custom” option and ensure you have checked the “install the Qt sources” options when running the installer, otherwise they will not be provided and you will run in to this problem. As an alternative, you can install the sources later using the SDK maintenance tool and then select Package manager > Miscellanous > Qt Sources

第一个方法:用QT SDK自代原SDKMaintenanceTool.死活都连不上。。。。哪位兄弟帮帮忙,要怎么连上。
第二个方法,试装他的SDK 源码,还是无法在调试的时候看到QT源代码进行DEBUG。。。

没招了。。。。。

乔巴好萌 2012-02-16
  • 打赏
  • 举报
回复
把对应的QtCored4.pdb等 放 在工作目录下
然后调试的时候 看输出窗口有无加载符号

16,216

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧