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. [Solved] How to properly setup Source Paths Mapping in QtCreator for Qt 5.0.1
Forum Update on Monday, May 27th 2025

[Solved] How to properly setup Source Paths Mapping in QtCreator for Qt 5.0.1

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 12.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.
  • U Offline
    U Offline
    Uwe Kindler
    wrote on 1 Feb 2013, 19:21 last edited by
    #1

    Hi,

    I just downloaded and installed Qt 5.0.1 for Windows 32-bit (MinGW 4.7). If I build a debug version of an example in QtCreator 2.6.2 (i.e. cube example) I can debug the example code but I cannot step into the Qt sources (i.e. widget.show()). I guess that I need to setup Source Path Mappings in QtCreator but I don't know what to enter for source and target path.

    I installed Qt 5.0.1 to C:\Coding\Qt5.0.1. That means the root directory of the installation that contains InstallationLog.txt is C:\Coding\Qt5.0.1. If I press the QtCreator button Add Qt sources... it adds the source paths C:\iwmake\build_mingw_opensource and C:\ndk_buildrepos\qt-desktop\src. But I'm not sure wich target paths to enter here. I tried C:\Coding\Qt5.0.1\5.0.1 and C:\Coding\Qt5.0.1\5.0.1\Src - but none of them worked and I still can't step into Qt functions.

    Any idea how to properly setup source paths mappings to debug Qt 5.0.1 source code.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alizadeh91
      wrote on 1 Feb 2013, 20:31 last edited by
      #2

      When u installed qt from installer did u enabled the source checkmark to tell installer to install cpp files?

      1 Reply Last reply
      0
      • U Offline
        U Offline
        Uwe Kindler
        wrote on 2 Feb 2013, 00:55 last edited by
        #3

        Yes, I did. The complete source code is properly installed under C:\Coding\Qt5.0.1\5.0.1\Src.

        1 Reply Last reply
        0
        • U Offline
          U Offline
          Uwe Kindler
          wrote on 2 Feb 2013, 13:01 last edited by
          #4

          I just checked the poblem with a clean installation of Qt 5.0.1 for Windows 32-bit (MinGW 4.7) into a clean virtual Windows 7 machine. I installed all components including source code. Then I started a debug session of blurpicker example. I could not step into Qt functions and all Qt source files in debugger source files views are greyed.

          So it is not possible to step into Qt library when debugging Qt 5 aplications.

          1 Reply Last reply
          0
          • U Offline
            U Offline
            Uwe Kindler
            wrote on 5 Feb 2013, 06:54 last edited by
            #5

            I created a bug report and got the confirmation that this is a bug - here is the proposed solution:

            bq. Unfortunately the paths in the debuginfo packages aren't patched properly, as described in "QTBUG-29449":https://bugreports.qt-project.org/browse/QTBUG-29449. Workaround is to add a mapping manually: Go to Options -> Debugger, Add "q:\qt5_workdir\w\s\qtbase" -> "C:\Qt\Qt5.0.1\5.0.1\Src\qtbase" to Source Paths mapping section.

            1 Reply Last reply
            0

            1/5

            1 Feb 2013, 19:21

            • Login

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