We are trying to use QtCreator as code editor for our projects for this, using guides found here we created a series of *.pro and *.pri files. For the next stage we are looking to generate those files somehow.
Our aim is to create projects files during build process via *.cs build scripts to that end we subclassed ProjectFileGenerator class of UnrealBuildTool but we do not know how to make buildtool to aware of that class.
In short, we are trying to create *.pro files automatically with intellisense etc support within the qt creator.
If you are on Windows maybe you want to try out this small tool I wrote.
It generates the pro and pri files automatically by extracting the necessary information from the Visual Studio project file and injects all build targets (debug game editor, development standalone, etc.) into the proj.pro.user file.
Not sure why everyone wants to use qtcreator with the horrible and none extendable design:D but we’ll I made in the past a full integration for CodeLite IDE https://github.com/EpicGames/UnrealEngine/pull/1378
Loot at it to find out how to make it work with UBT If you want to make it works with the whole system you will find out that some stuff are hard coded and you can see that in the link above too. (I have another PR that will support multiple ide but epic seems to be busy lately). Good luck and have fun …
Unreal Build Tool (UBT) can generate project many types of project files such as .pro for qtcreator:
> UnrealRoot/GenerateProjectFiles.bat -qmakefile
My advice is to disable Clang code parsing plugin in qtCreator (Help->Plugin-> C++ – uncheck ClangCodeModel) it is way too slow and sometimes even crashes with Unreal.
You can generate many other project files:
> GenerateProjectFiles.bat -makefile
> GenerateProjectFiles.bat -cmakefile
> GenerateProjectFiles.bat -qmakefile
> GenerateProjectFiles.bat -kdevelopfile
> GenerateProjectFiles.bat -codelitefiles
> GenerateProjectFiles.bat -xcodeprojectfiles
> GenerateProjectFiles.bat -eddieprojectfiles
> GenerateProjectFiles.bat -vscode (visual code)
Depending on your version of UE you may be able to use:
> GenerateProjectFiles.bat -2015 (visual studio 2015)
> GenerateProjectFiles.bat -2017 (visual studio 2017)
> GenerateProjectFiles.bat -2019 (visual studio 2019)