See everything that uses an include in Qt Creator?
-
If I have a header that I know is included all over, is there any easy way to see everything in the project that includes that particular header?
-
@wrosecrans said in See everything that uses an include in Qt Creator?:
If I have a header that I know is included all over, is there any easy way to see everything in the project that includes that particular header?
One way is to use Ctrl+Shift+F to search your project files for the inclusion line. For example, search for
#include "myheader.h"
-
If I have a header that I know is included all over, is there any easy way to see everything in the project that includes that particular header?
there is an Include Hierarchy side panel that provides exactly this info. I just don't remember the shortcut now, but you can change e.g. the projects side panel to it.
regards
-
there is an Include Hierarchy side panel that provides exactly this info. I just don't remember the shortcut now, but you can change e.g. the projects side panel to it.
regards
@aha_1980 said in See everything that uses an include in Qt Creator?:
there is an Include Hierarchy side panel that provides exactly this info. I just don't remember the shortcut now, but you can change e.g. the projects side panel to it.
Thanks @aha_1980, I learn something new every day!
http://doc.qt.io/qtcreator/creator-quick-tour.html#viewing-include-hierarchy
The shortcut is Ctrl+Shift+I