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.
  • S Offline
    S Offline
    sigrid
    wrote on 18 May 2011, 07:37 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 18 May 2011, 13:08 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 20 May 2011, 14:05 last edited by
        #9

        There has not been set a date for this yet.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          Eddy
          wrote on 23 May 2011, 17:51 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 4 Apr 2012, 20:28 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 8 May 2012, 07:27 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
              • J Offline
                J Offline
                James_Wozniak
                wrote on 23 Mar 2016, 21:24 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
                • 3 Offline
                  3 Offline
                  3idet
                  wrote on 2 Apr 2016, 20:27 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 7 Jul 2016, 15:08 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 1 Sept 2016, 11:57 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