Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 6.0.2, Qt Creator 7.0.2
-
None
-
-
0f202ea724 (qt-creator/qt-creator/9.0) 0f202ea724 (qt-creator/qt-creator/master)
Description
Preconditions:
Two C++ projects open (QBS and CMake). Both projects contain classes with identical names and interfaces but not exactly identical implementations. User migrates the implementation from the QBS to the CMake project making some project-specific changes.
Steps to reproduce:
Navigate to the header file of the CMake project, select a method and press F2 or Shift+F2 (Follow Symbol Under Cursor or Switch Between Function Declaration/Definition, respectively).
Observed behavior:
Qt Creator always opens definition (a cpp file) of the QBS project, no matter in which header file the declaration was selected.
Expected behavior:
Qt Creator navigates to the definition of the function in the cpp file of same project the header file belongs to.