title: How to add Qt sources to QtCreator in Ubuntu?
body: <p><strong>Edit</strong>
  <a href="https://stackoverflow.com/questions/5049578/stepping-into-qt-sources-in-qt-creator-in-ubuntu-linux">The answers to this post</a> either say compile yourself - which I don't want do to - or install <code>qtbase5-dbg</code> which is not part of Ubuntu releases anymore. So is there no way to achieve this without this package? And shouldn't there be different debug symbols for each Qt 5.X version?</p>
  <hr />
  <p>I'm trying to add Qt sources - which I installed along Qt <strong>both using the Qt Maintenance tool</strong> - to QtCreator but am not able to get it to work. I've already looked at various websites for help but still no luck. I need to step into the Qt sources to see how Qt3D works since I'm trying to develop a Qt3D widget.</p>
  <p>As for many others, when I go to  Options &gt; Debugger and there under Source Path Mappings click on <code>Add Qt sources...</code> it adds <code>/home/qt/work/qt</code> as <code>Source Path</code> and <code>/home/[my username]/Qt/5.14.2/Src</code> (the latter being the folder I selected).</p>
  <p>Since I can't step into the Qt sources I assume the <code>Source Path</code> is wrong. I tried to follow the steps from <a href="https://stackoverflow.com/a/29030724/3165451">this answer</a> but when I move the mouse over a function call in the call stack after stopping at a breakpoint doesn't yield any path - just the function name and address.</p>
  <p>Someone also pointed out that the compiled Qt libraries must not include <code>stripped</code> when getting info from them like this: <code>file libQt...</code>. But this is what <code>file libQt53DCore.so.5.14.2</code> gave me:</p>
  <pre><code>libQt53DCore.so.5.14.2: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=d764882c0c26814e30d63a4d4719143e14e4c735, not stripped
  </code></pre>
  <p>So I assume that's fine. Although I built Qt myself and <code>file libQt53DCore.so.5.15.0</code> yields</p>
  <pre><code> libQt53DCore.so.5.15.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=88eeb269ff68f0b71e3612d1a538503676da3790, with debug_info, not stripped
  </code></pre>
  <p>i.e. an additional <code>with debug_info</code>.</p>
  <p>Unfortunately, building Qt results in a 20 something GB build and I would have to do this for multiple Qt versions. So how can I setup QtCreator properly so that I can step into Qt sources.</p>