调试到Qt源 [英] Debug into Qt sources

查看:113
本文介绍了调试到Qt源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能进入Qt来源,例如qmainwindow.cpp,在Qt Creator?目前我正在看到反汇编,但是很高兴看到这些源代码。

解决方案

当然!但您可能必须先:




  • 转到$ QT_HOME / qt


  • 使用-debug或-debug-and-release标志(许多其他标志 here


  • 运行make


  • 等待几个小时,同时建立


Is it possible to step into Qt sources, e.g. qmainwindow.cpp, in Qt Creator? At the moment I'm seeing the disassembly, but it would be nice to see the sources instead.

解决方案

Of course! But you might have to first:

  • go to $QT_HOME/qt

  • run ./configure with the -debug or -debug-and-release flag (many other flags here)

  • run "make"

  • wait a couple of hours while things build

这篇关于调试到Qt源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆