How can I add a txt/json file to QtCreator project view?
-
wrote on 3 May 2022, 04:44 last edited by
Hello,
I have a configuration txt file at the root of my project, I want to be able to see it and modify it from Qt creator, but it seems the project view ignores all non c++ and pro files.Is it possible to add this file to the project view? I read about making a resource file and adding it there, but this is done to expose the file as a resource to the code. I don't need that. My project only uses this file on build time.
-
Hello,
I have a configuration txt file at the root of my project, I want to be able to see it and modify it from Qt creator, but it seems the project view ignores all non c++ and pro files.Is it possible to add this file to the project view? I read about making a resource file and adding it there, but this is done to expose the file as a resource to the code. I don't need that. My project only uses this file on build time.
@Curtwagner1984 are you using qmake or cmake ?
anyway, qmake its
//in pro file: DISTFILES += myotherfile.txt
cmake, I don't know 😅
-
wrote on 1 Jun 2022, 06:10 last edited by
Thank you!