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

Qt creator hangs when trying to open QtBase



  • Hi,
    I tried to set up the environment to modify qt source code as per the instructions provided on the website (here, I did not set up all the flags, but used the ones in the build from git page). However, Qt creator threw a LOT of errors when i used the kit based on qt which i just built manually.
    So I cleaned everything, and set it up again using another version of Qt. It still shows me a lot of errors (all are /home/tanmay/qt5/qtbase/configure.pri:115: error: Function 'prompt' is not implemented mainly on lineval = $$lower($$prompt("Which edition of Qt do you want to use? ", false)) & val = $$lower($$prompt("Do you accept the terms of $$affix license? ", false))) , and the system still hangs.
    I had NOT added -confirm-license to the configure command.
    Please suggest any solutions.


  • Lifetime Qt Champion

    5.15.0 ? You should rather go with the 5.15 branch if you are locked to 5.15.

    In any case, the qtbase module if pretty big, I would rather open the project matching the submodule you want to hack on.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Which version of Qt are you trying to hack on ?
    Did you already successfully build it ?
    Which version of Qt Creator are you using ?



  • I'm using Qt 5.15.0.

    Yes, when I use the built Qt in my kit, it does launch a project.

    I'm using Qt Creator 4.14.0 (installed via the online installer)

    I somehow managed to remove the Qtbase project from the IDE, and all of the other projects work just fine.


  • Lifetime Qt Champion

    5.15.0 ? You should rather go with the 5.15 branch if you are locked to 5.15.

    In any case, the qtbase module if pretty big, I would rather open the project matching the submodule you want to hack on.



  • Erm I chose the above version because I wanted a newer version without it colliding with my current 5.15.2. (Is it alright if I have two of the same?). And for src/gui/painting, I couldn't find a .pro file. How should I open it?


  • Lifetime Qt Champion

    You can have as many Qt variants you want, just store them properly in clearly named folders.

    It contains a .pri file. The submodule is gui.



  • Yeah, I was going to say that but there's this reputation limit.
    Anyway, to see my changes, do I need to build the entire qt again using make (and mostly not,still ./configure too)?


  • Lifetime Qt Champion

    The configure step is only mandatory before you build Qt the first time. Or in your case, qtbase. There's no need to build the whole of Qt if you hack only on qtbase.

    Like any other project, the first build takes the longest. Unless you modify a core class, you will essentially rebuild only the module you touched.



  • Thanks a lot!


Log in to reply