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. Importing project with hierarchical structure
Forum Updated to NodeBB v4.3 + New Features

Importing project with hierarchical structure

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 954 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.
  • S Offline
    S Offline
    saturnx
    wrote on last edited by
    #1

    Hi everybody,
    I have a question about creating project of hierarchical structure.
    There is a project with the following structure.

    !http://s24.postimg.org/brmepn4ut/hier.png(2 level hierarchical project)!

    I have created project by importing existing project in qtcreator.
    The problem is in that autocompletion and finding symbol under cursor work only in the scope of second level project (i.e. project_i_j). One second level project can include headers from other second level project.

    What configurations can be done to make autocompletion and finding symbol under the cursor work in the scope of hier_project folder?

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      To make other project visible you need to provide the include paths, which will contain the includes from all projects.
      Add the paths one per line into hier_project.include
      @
      /path/to/hier_project/project_1/project_1_1
      ...
      /path/to/hier_project/project_2/project_2_1
      ...
      /path/to/hier_project/project_n/project_n_m
      @

      The paths can be relative too.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        saturnx
        wrote on last edited by
        #3

        The includes are generated automatically when importing the project.
        Actually some class from project_2 are visible in project_1, but some others not.

        I think the problem is in forward declarations which is higher prioritized by qtcreator.

        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