How to always compile a file?

I have a Qt project with QML files. Whenever I change these files, I have to manually right-click the .qrc (resources) file and recompile it.

How can I show visual studio to always compile a specific file, and not just when it thinks it has changed?

(Here are the similar questions others asked for eclipse and flashdevelop )

+2
source share
1 answer

I encountered the same problem when creating qt applications using Qt Creator (especially when using QML files as resources.) I solved the problem using a little hack.

  • touch.bat .
  • copy qml.qrc /B+ ,,/Y, qml.qrc - .
  • QtCreator Project- > Build Steps- > Add Build Step- > Custom process step touch.bat
  • , , qml.qrc. , qml.qrc .

Visual Studio ( ). touch.bat Visual Studio. , , , .qrc .

, , . . .

+3

Source: https://habr.com/ru/post/1690847/


All Articles