Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator: View (and debug into) Qt Sources?

Qt Creator: View (and debug into) Qt Sources?

Scheduled Pinned Locked Moved Qt Creator and other tools
16 Posts 11 Posters 24.8k 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.
  • A Offline
    A Offline
    andre
    wrote on last edited by
    #3

    Huh? I installed the sources right from the SDK. You just have to select that you want them. In the tree of items to install, they can be found under Qt SDK -> Miscellaneous -> Qt Sources. I can choose to install versions 4.7.1 through 4.7.3. And yes, they are installed then.

    1 Reply Last reply
    1
    • S Offline
      S Offline
      sigrid
      wrote on last edited by
      #4

      I see. nonot1: can you verify that you selected to install the sources?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Duck
        wrote on last edited by
        #5

        @Andre: Having the sources alone is not sufficient if the libraries are not directly build from it. At the very least you need to create an association from the location where the sources were at compile time to the place were the sources are installed. There's an item in the debugger options, "General" settings.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nonot1
          wrote on last edited by
          #6

          I have not had a chance to play with this again yet. Was thinking of waiting until Qt Creator 2.2 final was released. (what is the schedule for that?)

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sigrid
            wrote on last edited by
            #7

            Qt Creator 2.2 final is already released, see:

            http://labs.qt.nokia.com/2011/05/06/qt-creator-2-2-released/

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #8

              Any idea when we may expect an update for the SDK, so we can simply use the SDK updater feature to get the latest and greatest Qt Creator?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sigrid
                wrote on last edited by
                #9

                There has not been set a date for this yet.

                1 Reply Last reply
                0
                • EddyE Offline
                  EddyE Offline
                  Eddy
                  wrote on last edited by
                  #10

                  Updating the sdk with Qt Creator 2.2 now.(just released this afternoon) i have Choosen custom instead of default and got the choises Andre was talking about. Thanks for the hint!

                  Qt Certified Specialist
                  www.edalsolutions.be

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    bmanc
                    wrote on last edited by
                    #11

                    I was having problems despite seeing the feature for the source. I am adding this in hopes that it will save others some time. I am using the QtSDK with QtCreator 2.4.1, and I have downloaded the source using the QtSDK package manger. The source is located in the default path (relative to the SDK root) C:\QtSDK\QtSources\4.8.0.

                    In the QtCreator options, under Debugger->General you need to click on "Add Qt sources...". Then you need to select C:\QtSDK\QtSources\4.8.0. I was originally making the mistake of selecting C:\QtSDK\QtSources\4.8.0\src - which obviously was failing.

                    Once you OK out of the dialog you should be able to debug into the Qt source code in QtCreator.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      p.kreker
                      wrote on last edited by
                      #12

                      [quote author="bmanc" date="1333571328"]I was having problems despite seeing the feature for the source. I am adding this in hopes that it will save others some time. I am using the QtSDK with QtCreator 2.4.1, and I have downloaded the source using the QtSDK package manger. The source is located in the default path (relative to the SDK root) C:\QtSDK\QtSources\4.8.0.

                      In the QtCreator options, under Debugger->General you need to click on "Add Qt sources...". Then you need to select C:\QtSDK\QtSources\4.8.0. I was originally making the mistake of selecting C:\QtSDK\QtSources\4.8.0\src - which obviously was failing.

                      Once you OK out of the dialog you should be able to debug into the Qt source code in QtCreator.
                      [/quote]

                      Thank you for your solution. :)

                      1 Reply Last reply
                      0
                      • James_WozniakJ Offline
                        James_WozniakJ Offline
                        James_Wozniak
                        wrote on last edited by
                        #13

                        Has anyone tried this with a newer version of Qt and Qt Creator?

                        I'm currently trying to use Qt Creator 3.6.1 to debug Qt 5.6.0 for Android (on Windows). The kits were auto generated, once I found a compatible NDK (i.e. android-ndk-r10e-windows-x86), and I am able to debug QML and the C++ in the Qt example app. However I cannot debug the Qt Source, even though I followed the steps mentioned above:

                        • I made sure I downloaded the Qt Source when installing Qt.
                        • I tried going to Tools -> Options... -> Debugger -> General -> Add Qt sources..., but the paths seem to have changed a bit since bmanc commented four years ago. With Qt installed to C:\Qt\Qt5.6.0AndroidSource, I unsuccessfully tried the following paths: C:\Qt\Qt5.6.0AndroidSource\5.6 and C:\Qt\Qt5.6.0AndroidSource\5.6\Src

                        Any help on debugging Qt source (for Android on Windows) would be appreciated. Thanks!

                        1 Reply Last reply
                        0
                        • 3idet3 Offline
                          3idet3 Offline
                          3idet
                          wrote on last edited by
                          #14

                          @James_Wozniak I had the same problem with the windows Qt 5.6 version. So I had a look into the pdb files. There I found the new path which is "c:/users/qt/work/qt" for the Windows version. Maybe you can have a look into your debugging symbol files for Android and identify the new path.

                          TL;DR; If you want to jump into the qt source code while debugging, download source and map source path to "c:/users/qt/work/qt"

                          1 Reply Last reply
                          2
                          • D Offline
                            D Offline
                            djvi
                            wrote on last edited by
                            #15

                            Sorry to bump an old topic like this but the problem is exactly the same as mine.

                            Like said in the topic, to be able to debug into Qt Sources, you are supposed with QtCreator to map the source file by going to Tools->Options->Debug->General->Add Qt sources

                            But even by doing so, it doesn't work for me and some help would be really appreciated to solve the issue.
                            (The destination path I give is C:\Qt\Qt5.7.0\5.7)

                            1 Reply Last reply
                            1
                            • L Offline
                              L Offline
                              LSIDev
                              wrote on last edited by
                              #16

                              @djvi
                              Had this bug, too, with the desctop version -- what came out of the button 'Add Qt-Sources' was not usable -- the source-attribute of both entries was not valid. By looking in the pdb-files I added manually an entry with attributes
                              source=c:/users/qt/work/qt
                              destination=C:\Qt\Qt5.6.0\5.6\Src.
                              Take a look into one of your pdb-files and then adapt the paths.
                              Added a screenshot of the debugger settings, hope it helps!
                              0_1472730942117_debugger_prefs_correct.jpg

                              1 Reply Last reply
                              2

                              • Login

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