"Go to Definition" doesn't bring up the definitions

Marcus Aseth 0 Reputation points
2025-01-19T06:58:29.29+00:00

I can't see definitions for anything part of the Qt library from visual studio... there is a way to make it show the definitions? From the Project properties -> VC++ Directories -> Source Directories I've added the path for the .cpp files, but still, "Go To Definition" gives this error below:

Immagine 2025-01-19 075440

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2025-01-20T06:20:46.29+00:00

    Hello @Marcus Aseth ,

    Welcome to Microsoft Q&A forum.

    I doubt that the warning you get is because the C++ Browsing Database Parser is a fuzzy parser(it skips the content of some blocks).

    I suggest you kindly check this document: Hint Files, and this thread: Error "A definition for the symbol X could not be loaded" is thrown for variables that use macros in their definition(I’m not sure if the Qt library you are using can work correctly after using the hint files, but maybe the root cause is like what mentioned in the above document/thread).

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.