.pro file is not getting updated with a add or remove of any source file from Projects,
I am implementing Internationalization using QT tools. I am using lupdate for creating .ts file and then Qt lingusit for creating .qm file.
As lupdate runs on .pro file. I have my own application with few different libraries project. Each application and Lib has there own .pro file.
My problem is .pro file doesn't get updated if we add or remove some source files from an application or library. I am using Visual studio for a development. Is there any way to update .pro file without creating it again ?
Please Let me know.
if we add or remove some source files from an application or library
How do you add/remove files?
When we convert Qt pro to a Visual Studio solution, changes made in the solution file( like adding or removing files), won't be reflected in the Qt pro file.
The solution will be to make the relevant changes in the pro file and then generate the VS solution file from it.
PS: I haven't worked with the recent VS versions and Qt pro files. So take this suggestion with a pinch of salt.
I am using Visual studio for a development. Is there any way to update .pro file without creating it again ?
No. they are 2 different build system unfortunately
Hi jsulm, Thanks for your reply.
I am removing or adding files using visual studio 2015, by right click on any files and then remove. Or doing new item as .h or .cpp.
I am using VS 2015 with Qt as a add-on.
In my project I was not using .pro file, but in order to implement internationalization, I have created .pro file using QtVS tools. So that I can run lupdate on .pro file.
other wise I dont need .pro file as I was managing it using .vcxproj.
Re: [.pro file is not getting updated with a add or remove of any source file from Projects](, /topic/93262/pro-file-is-not-getting-updated-with-a-add-or-remove-of-any-source-file-from-projects)
As I mentioned I dont need .pro file for managing my project because I am using visual studio IDE, which manages project using .vcxproj.
I needed .pro file so that I can run lupdate and create .ts file.
But now I found a way to create .ts without running lupdate on .pro file. I used lupdate command directly on a project folder, as a post build event in visual studio and it eliminates the use of .pro file.
command : lupdate [source/extensions/dir] -ts [filename.ts]
Thanks to all for your reply.