Вопрос

In my qmake-pro-file, I use something like SOURCES = $$files(*.cpp) which expresses exactly what I want and works great when I do qmake && make. However, when I work with QtCreator and when I add or rename some file, how can I get QtCreator to update the file list? I currently must restart QtCreator.

Это было полезно?

Решение

AFAIK, the only ways you can force qt-creator to re-parse the pro file is by either touching the pro file (i.e. $ touch project.pro), or by re-saving the pro file (i.e. by adding a random space somewhere, removing it again and saving the file).

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top