[Qt-creator] Refreshing the project tree

André Pönitz andre.poenitz at mathematik.tu-chemnitz.de
Fri Sep 13 20:10:45 CEST 2013


On Thu, Sep 12, 2013 at 07:56:57PM -0700, achartier at fastmail.fm wrote:
> Hello,
> 
> My team and I find it very convenient to use wildcards in defining
> HEADERS and SOURCES:
> 
> HEADERS += $$files(*.h)
> SOURCES += $$files(*.cpp)
> 
> Unfortunately, when we add a new header or source file, the Qt Creator
> project tree needs to be manually refreshed to show the new file(s). I
> usually do this by going to the .pro file, adding a space, deleting a
> space and saving the file.
> 
> Is there a better/more "official" way of refreshing the project tree?

The official way is indeed to list the files explicitly, and not use the
glob facility.

> I looked through the Qt Creator menus and couldn't find anything. A way to
> trigger a project tree refresh through a keyboard shortcut would be even
> better.

Would explicitly running "Build->Run qmake" help?

Andre'



More information about the Qt-creator mailing list