Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Make "Follow symbol under cursor" find definitions in C header files from library source dir
Forum Updated to NodeBB v4.3 + New Features

Make "Follow symbol under cursor" find definitions in C header files from library source dir

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 330 Views 1 Watching
  • 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by Diracsbracket
    #1

    Hello,
    My CPP/QML project includes the Lexbor C library, which it first builds (as part of the project).

    Then, in my main.cpp, I have something like:

    lxb_status_t
    find_callback(lxb_dom_node_t *node, lxb_css_selector_specificity_t *spec,  void *ctx) 
    {
        ...
    }
    

    When I follow the symbol lxb_dom_node_t, Qt Qreator correctly leads me to: /usr/local/include/lexbor/dom/interface.h

    typedef struct lxb_dom_node lxb_dom_node_t;
    

    However, when I try to follow lxb_dom_node, it does not work.
    This definition is located in the following file in the source directory
    of the library:

    ~/MyProject/lexbor/source/lexbor/dom/interfaces/node.h`
    

    How can I make Qt Creator find this via the "Follow ..." functionality?

    Thanks!

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi

      You can try adding

      INCLUDEPATH += ~/MyProject/lexbor/source/lexbor/dom/interfaces

      and see.

      Depending what you have already

      DiracsbracketD 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi

        You can try adding

        INCLUDEPATH += ~/MyProject/lexbor/source/lexbor/dom/interfaces

        and see.

        Depending what you have already

        DiracsbracketD Offline
        DiracsbracketD Offline
        Diracsbracket
        wrote on last edited by
        #3

        @mrjj
        Thanks! I tried that already in CMakeLists.txt, trying both with include_directories and target_include_directories, but that does not help.

        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