Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved See everything that uses an include in Qt Creator?

    Tools
    3
    4
    463
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wrosecrans last edited by

      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?

      aha_1980 1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        @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"

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply Reply Quote 2
        • aha_1980
          aha_1980 Lifetime Qt Champion @wrosecrans last edited by

          @wrosecrans

          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

          Qt has to stay free or it will die.

          JKSH 1 Reply Last reply Reply Quote 3
          • JKSH
            JKSH Moderators @aha_1980 last edited by

            @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

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply Reply Quote 2
            • First post
              Last post