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

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

      *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.

        1. image-2022-10-05-21-47-54-643.png
          291 kB
          Mikio Hirai
        2. image-2022-10-05-21-49-55-501.png
          304 kB
          Mikio Hirai
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes