How to step into Qt code. Qt architecture UML.
-
Hi!
I am new to Qt, but want to deeply understand this library. For this goal I prefere looking through library sources in debug (callstack particulary) and step into unknown for me functions. Currently Qt Creator gives me this only:
////
Note: Binary debug information is accessible for this frame. However, matching sources have not been found.
////
After some search on forums, it seems to me, that the only way to achieve this is download Qt from git repository, and compile Qt by myself.QUESTION 1: if I must download source from git, or I can use sources from
http://qt-project.org/downloads.
Reason: I downloaded already the same Qt 5.0.2 32bit install packages, and sources for Win and Linux, and want to work with Qt in all this platforms.There is a link http://qt-project.org/wiki/Building-Qt-5-from-Git "Building Qt 5 from Git"
QUESTION 2: If it is enough? And if so, what to do with my current installation?
Currently I'm working with Qt 5.0.2 for Windows 32-bit (MinGW 4.7, 650 MB)
// I want to try new compiler for me. My former experience was with VS-2005/8/10 (MFC, STL, boost and so on).QUESTION 3: If there is somewhere acceptable UML diagram of Qt library itself, or at least it's kernel classes links/composition description, inner slot/event implementation.
QUESTION 4: (maybe the most simple) How to tell Qt Creator to store my breakpoints. After reopening my project they disappeare.
Thanks in advance!
-
I am no windows expert, so I can not answer your windows-related questions.
I do know that breakpoints, bookmarks, open files and projects, etc. are stored as part of your session, not your project. So use Sessions, not projects:) Check the file menu for the session manager used to -- you guessed it -- manage your sessions.
-
Question 1: if you want to build Qt from source you need to download the source for either GIT or the source archive which you can find on the download page.
The install packages are already pre-compiled for those systems.
Note that if you run the installers and also install the source code, you can already get pretty deep into the library.Question 2: you can have different qt versions next to each other, no problem. You just need to make sure you set up Qt Creator correctly.
Question 3: Check out the video's on this website which give you insight in the architecture of the system.
Question 4: use sessions (like Tobias said :)).