Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to use Qt Creator with Qt source



  • TL;DR: I would like to use Creator to browse and step through Qt itself. What are the steps to do so?

    I've been using Qt for years and have in the past made small changes. I was able to simply open the top .pro file in Creator and build.

    Now cloning the git repo and trying to open qt.pro in Creator fails.

    It was suggested elsewhere that we should not try to open qt.pro, but rather only individual submodules, but this is also problematic.

    Could someone comment on whether the following process should work?

    1. git clone <repo>
    2. git checkout 5.12 (for example)
    3. perl init-repository
    4. change to build dir and configure
    5. open qtbase.pro in Creator
    6. .. import the build? specify a new build directory?

    One of the problems I run into is "...qtbase/configure.pri(224): Function 'prompt' is not implemented."

    Apparently this is because of a license prompt. I tried to solve this by running configure with '-confirm-license' in the source directory, to no avail.

    Any suggestions or pointers to resources would be much appreciated.

    I can't believe it's this difficult to browse the Qt sources with Qt's own IDE.


Log in to reply