Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Required to update Qt .pro and Visual Studio .vcxproj on new file additions

I'm developing using Qt Creator and Visual Studio. However, if I add a new file to the project through Visual Studio the Qt .pro file is out of sync and does not show the new file. Additionally, if I add a new file via Qt Creator the .vcxproj file doesn't get updated and therefore Visual Studio is out of sync.

I am using Visual Studio on Windows and Qt Creator on Linux.

Is there a proper way to manage this type of situation or is this something I just need to keep updated manually if I want the two project files?

like image 647
trb Avatar asked Dec 20 '25 03:12

trb


1 Answers

There are a few options:

1) Use only Qt Creator, since it runs on both windows and linux it's an good option.

2) Only use the .pro to add files (options/etc), basically only use qmake build system to modify the anything build related and after each change re-create the VS files by using Open Qt project file (.pro) from Qt menu in Visual Studio.

3) Use a completely different build option that can be used on all the platforms you need, for example cmake is a good option and both Visual Studio and Qt Creator have support for it (i didn't used it, so i don't know how easy it's to setup, but i assume it should be relatively easy).

like image 79
Zlatomir Avatar answered Dec 21 '25 19:12

Zlatomir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!