Don't do that. You have to anyway first configure Qt which can only be done on the command line so do the initial build there.

If you want to hack on Qt itself, only open the part of the module you want to work on. The whole Qt 5 source tree is made of several thousands of files. Depending on the modules you have, it can go over 100'000.

@SGaist I have complied the complete Qt source code in ubuntu using terminal and make command, then tried to complie it in Qt creator, while compiling individual modules of the source code it complied without hanging, but when i try to compile the whole source code at once it is hanging.