[Qt-creator] Unexpected (?) behaviour for "Files in any project" short-cut

Eike Ziller Eike.Ziller at qt.io
Fri Jan 21 08:51:48 CET 2022

> On 20 Jan 2022, at 17:20, Toralf Lund <toralf.lund at pgs.com> wrote:
> Hi
> Under "Keyboard" in Qt Creator Environment Options, I've assigned a keyboard shortcut to "Locator - Files in any project". The actual behaviour I get looks more like "Files in All Projects", though.. In cases where I have "non-project" files e.g. from build inside the project directory, those may be listed, too. Is that they way it should be?
> I notice that under the "Locator" tab (as opposed to the "Locator" section of "Keyboard"), the same prefix ("a") is associated with both functions - I guess that may have something to do with it. This is not something I've ever changed.
> I'm using a not-quite-new version supplied with CentOS stream 8; I could try building a newer release, but do you think it would make any difference?

The shortcut setting is probably a bit misleading, because what it does, is to simply focus the Locator input and set the text to the “prefix” for the locator filter. You are right that the Files in All Project Directories and Files in Any Project filters have the same prefix by default - this was for convenience to have a prefix that shows “all files that are somehow related to all projects”.

This probably doesn’t fit all possible use cases - as it doesn’t seem to fit yours ;) . The good thing is that you can just change the prefix for the “Files in All Project Directories” filter in the settings.

Br, Eike

Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Erich-Thilo-Straße 10
D-12489 Berlin
eike.ziller at qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

More information about the Qt-creator mailing list