Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt源码有进不去的吗

    Chinese
    5
    11
    9281
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • betterorbest
      betterorbest last edited by

      用QtCreator调试Qt程序,进不去Qt源码啊,安装时已经选中了Src了,有解决方法吗

      E 1 Reply Last reply Reply Quote 0
      • E
        Eddy @betterorbest last edited by

        @betterorbest

        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...
        

        Qt Certified Specialist
        www.edalsolutions.be

        betterorbest 1 Reply Last reply Reply Quote 0
        • betterorbest
          betterorbest @Eddy last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • Z
            ZiJia last edited by

            在Mac上使用Qt Creator调试Qt源代码是很复杂的.在Windows/linux上调试很简单.

            betterorbest 1 Reply Last reply Reply Quote 0
            • betterorbest
              betterorbest @ZiJia last edited by

              @ZiJia
              在QT5.5.0和msvc2013下,不管是qtcreator还是vs,都进不去源码,该加的源文件、调试符号都加了,还是不行。
              最后估计只能重新编译Qt源码了

              1 Reply Last reply Reply Quote 0
              • jiancaiyang
                jiancaiyang last edited by

                需要源码编译Qt的源码才行呢。
                你想看源码调试情况,估计是找到了Qt的BUG。首先到
                bugreports.qt.io去找找吧。

                我们自己的论坛:http://qtdream.com
                擅长三维角色仿真动画。

                betterorbest 1 Reply Last reply Reply Quote 0
                • betterorbest
                  betterorbest @jiancaiyang last edited by

                  @jiancaiyang
                  谢谢,换了一个Qt版本,解决了源码不能进的问题

                  1 Reply Last reply Reply Quote 0
                  • jiancaiyang
                    jiancaiyang last edited by

                    是的,还有一点,就是Qt5.5.0也算很老的了,现在都Qt5.9.1了。

                    我们自己的论坛:http://qtdream.com
                    擅长三维角色仿真动画。

                    betterorbest 1 Reply Last reply Reply Quote 0
                    • TobyYi
                      TobyYi last edited by

                      可以进入源码进行调试啊 前提是你要设置源码的路径吧
                      0_1499071252183_1616917f-c3b9-432e-9438-3c698122c7b5-image.png

                      将QtCoding进行到底,做Qt的宠儿
                      关注移动互联网,关注手机助手
                      开发即时通讯,服务于金融行业
                      My github :https://github.com/toby20130333

                      betterorbest 1 Reply Last reply Reply Quote 0
                      • betterorbest
                        betterorbest @jiancaiyang last edited by

                        @jiancaiyang
                        这个确实

                        1 Reply Last reply Reply Quote 0
                        • betterorbest
                          betterorbest @TobyYi last edited by

                          @TobyYi
                          设置了,但是5.5.0的就是不行,调试符号我也重新下载并添加,也是不行

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post