.pro file is not getting updated with a add or remove of any source file from Projects,
-
wrote on 1 Aug 2018, 13:27 last edited by PoonamGupta 8 Jan 2018, 13:54
Hello All,
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.
Thanks !!!.
-
Hello All,
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.
Thanks !!!.
@PoonamGupta said in .pro file is not getting updated with a add or remove of any source file from Projects,:
if we add or remove some source files from an application or library
How do you add/remove files?
-
wrote on 2 Aug 2018, 05:29 last edited by
Hi,
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.
Regards,
San -
Lifetime Qt Championwrote on 2 Aug 2018, 06:00 last edited by aha_1980 8 Feb 2018, 06:00
@PoonamGupta Are you using the Qt Visual Studio Tools?
-
Hello All,
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.
Thanks !!!.
wrote on 2 Aug 2018, 08:02 last edited by@PoonamGupta said in .pro file is not getting updated with a add or remove of any source file from Projects,:
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
-
@PoonamGupta said in .pro file is not getting updated with a add or remove of any source file from Projects,:
if we add or remove some source files from an application or library
How do you add/remove files?
wrote on 2 Aug 2018, 12:48 last edited by PoonamGupta 8 Feb 2018, 12:49Hi 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. -
@PoonamGupta Are you using the Qt Visual Studio Tools?
wrote on 2 Aug 2018, 12:54 last edited byI 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.
-
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.
wrote on 2 Aug 2018, 14:58 last edited byRe: [.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)
Hi All,
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.
1/8