Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCreator: can't find a way to search globally for a symbol usage
Forum Updated to NodeBB v4.3 + New Features

QtCreator: can't find a way to search globally for a symbol usage

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.8k Views
  • 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.
  • B Offline
    B Offline
    Black Imp
    wrote on last edited by Black Imp
    #1

    Since I've installed qt creator 4.7 then updated to 4.10 version I've not been able to find all lines referencing to a symbol throughout the whole project: anymore - with previous version I used along with qt 5.7 I was able to - context menu entry "Find references to Symbol Under Cursor" only finds references in the current file and its counter part h/cpp, not in the whole application.
    This is a real limitation. Is there any setting that can modifie this behaviour?
    thank you

    aha_1980A 1 Reply Last reply
    0
    • B Black Imp

      Since I've installed qt creator 4.7 then updated to 4.10 version I've not been able to find all lines referencing to a symbol throughout the whole project: anymore - with previous version I used along with qt 5.7 I was able to - context menu entry "Find references to Symbol Under Cursor" only finds references in the current file and its counter part h/cpp, not in the whole application.
      This is a real limitation. Is there any setting that can modifie this behaviour?
      thank you

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Black-Imp,

      Since Creator 4.7 the Clang Code Model is active by default. What happens if you deactivate it in Help > About Plugins > Clang Code Model and restart Creator?

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • B Offline
        B Offline
        Black Imp
        wrote on last edited by
        #3

        Hi thank you but it didn't work.

        aha_1980A 1 Reply Last reply
        0
        • B Black Imp

          Hi thank you but it didn't work.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Black-Imp does that also happen with a minimal project? Can you show the effect?

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          1
          • B Offline
            B Offline
            Black Imp
            wrote on last edited by Black Imp
            #5

            no it's not a minimal project.

            I've just noticed that this problem involves only my singleton classes:
            if I search for references to "getInstance" that is the function returning singleton object it works correctly.
            It does NOT for all the other functions.
            Searching for functions in any other non singleton classes it works.

            It's quite simple: you have a classe FooManager, with some funcions. if you right click on a function name used all over the classes, and you select "Find References of Symbol under cursor" it lists only references in foomanager.h and foomanager.cpp thou it's used in many other places.

            Notice that before switching to qtcreator 4.7 it used to work perfectly.

            aha_1980A 1 Reply Last reply
            0
            • B Black Imp

              no it's not a minimal project.

              I've just noticed that this problem involves only my singleton classes:
              if I search for references to "getInstance" that is the function returning singleton object it works correctly.
              It does NOT for all the other functions.
              Searching for functions in any other non singleton classes it works.

              It's quite simple: you have a classe FooManager, with some funcions. if you right click on a function name used all over the classes, and you select "Find References of Symbol under cursor" it lists only references in foomanager.h and foomanager.cpp thou it's used in many other places.

              Notice that before switching to qtcreator 4.7 it used to work perfectly.

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Black-Imp so please provide a minimal project for reproducing. If it turns out to be a bug, we need that anyway.

              Regards

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tpircs
                wrote on last edited by
                #7

                Maybe try disabling ClangRefactoring plugin, this works for me.

                G 1 Reply Last reply
                1
                • T tpircs

                  Maybe try disabling ClangRefactoring plugin, this works for me.

                  G Offline
                  G Offline
                  gengar
                  wrote on last edited by
                  #8

                  @tpircs it work for me

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved