Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28250

Find References to Symbol Under Cursor should show the reference in .qml files too

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 7.0.2
    • Editors
    • None
    • All

    Description

      *The project shown here is "heartrate-game" example shipped with Qt Creator.

      There is a feature called "Find References to Symbol Under Cursor" which shows the places in the project where the selected symbol is referenced.

      However, if I use this to, let's say a slot in .cpp, it only shows the references in .cpp files, even though it's supposed to be searched under the entire project.
      Here is what actually happened when I used it to the slot "connectToService" in .h file.

       

      The result is kind of misleading and even confusing becuase in the image above, the slot "connectToService" appears to be not used at all, but this slot actually is used in .qml, which by the way I found by using "Search" feature of Qt Creator.

       

      Realistically speaking, symbols in Qt projects tend to be used in both cpp and qml side, therefore, in order to make it easier for developers to grasp the big picture, "Find References to Symbol Under Cursor" should show the reference in .qml files too.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              davschul David Schulz
              mikio_hirai Mikio Hirai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes