Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. Qt源码有进不去的吗

Qt源码有进不去的吗

Scheduled Pinned Locked Moved Unsolved Chinese
11 Posts 5 Posters 10.3k Views
  • 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.
  • betterorbestB Offline
    betterorbestB Offline
    betterorbest
    wrote on last edited by
    #1

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

    EddyE 1 Reply Last reply
    0
    • betterorbestB betterorbest

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

      EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      @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

      betterorbestB 1 Reply Last reply
      0
      • EddyE Eddy

        @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...
        
        betterorbestB Offline
        betterorbestB Offline
        betterorbest
        wrote on last edited by
        #3

        @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
        0
        • Z Offline
          Z Offline
          ZiJia
          wrote on last edited by
          #4

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

          betterorbestB 1 Reply Last reply
          0
          • Z ZiJia

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

            betterorbestB Offline
            betterorbestB Offline
            betterorbest
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • jiancaiyangJ Offline
              jiancaiyangJ Offline
              jiancaiyang
              wrote on last edited by
              #6

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

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

              betterorbestB 1 Reply Last reply
              0
              • jiancaiyangJ jiancaiyang

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

                betterorbestB Offline
                betterorbestB Offline
                betterorbest
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                • jiancaiyangJ Offline
                  jiancaiyangJ Offline
                  jiancaiyang
                  wrote on last edited by
                  #8

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

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

                  betterorbestB 1 Reply Last reply
                  0
                  • TobyYiT Offline
                    TobyYiT Offline
                    TobyYi
                    wrote on last edited by
                    #9

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

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

                    betterorbestB 1 Reply Last reply
                    0
                    • jiancaiyangJ jiancaiyang

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

                      betterorbestB Offline
                      betterorbestB Offline
                      betterorbest
                      wrote on last edited by
                      #10

                      @jiancaiyang
                      这个确实

                      1 Reply Last reply
                      0
                      • TobyYiT TobyYi

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

                        betterorbestB Offline
                        betterorbestB Offline
                        betterorbest
                        wrote on last edited by
                        #11

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

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved