Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qtcreator: includes not displayed
Forum Updated to NodeBB v4.3 + New Features

qtcreator: includes not displayed

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 763 Views 2 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.
  • A Offline
    A Offline
    alexqt143
    wrote on last edited by
    #1

    Hi,
    I have a subproject setup as follows:
    toplevel (template=subdirs)
    |__lib (project folder) with the sources of the library
    |__app (project folder) with the source for the app, using the lib
    |__include/libIncludes (usual directories) holding the includes of the lib

    In the lib.pro, I have:

    INCLUDEPATH += ../../include/libIncludes/
    SOURCES += \
        some.cpp 
    HEADERS += \
        some.h \
    
    

    Everything compiles fine.
    However, in qtcreator I don't see the include files as usual if they reside inside / below the .pro file.
    I'm following the llvm specific directory setup (with 'out of source-dir' includes location).
    How can I get the include files visible in qtcreator projects navigation pane?

    Alex

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

      Hi,

      Are the files in libIncludes listed somewhere ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexqt143
        wrote on last edited by
        #3

        Hi,
        what do you mean by listed in libIncludes?
        They are listed in the pro file of the lib as HEADERS (example: some.h above).
        I also tried to use the path ../../include/libIncludes/some.h explicitly, does not change anything.
        Inside the libIncludes is no pro file...

        Did I answer your question; I'm not sure?
        Alex

        aha_1980A 1 Reply Last reply
        0
        • A alexqt143

          Hi,
          what do you mean by listed in libIncludes?
          They are listed in the pro file of the lib as HEADERS (example: some.h above).
          I also tried to use the path ../../include/libIncludes/some.h explicitly, does not change anything.
          Inside the libIncludes is no pro file...

          Did I answer your question; I'm not sure?
          Alex

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @alexqt143

          You only see the headers for the project they are added to the HEADERS section in the pro file. So for you, they should already appear in the Project pane under lib, which seems good for me.

          If you also want to see them under app, you should probably move the list of headers to a lib.pri file and include that one from lib.pro and app.pro.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          2
          • A Offline
            A Offline
            alexqt143
            wrote on last edited by alexqt143
            #5

            @aha_1980
            listed in HEADERS in the lib .pro is the case (as shown above), but they are not shown:
            https://imgur.com/a/NGxGoqv
            So whats wrong here?
            (sorry for the image link, the image url as image did not work)

            J.HilkJ aha_1980A 2 Replies Last reply
            0
            • A alexqt143

              @aha_1980
              listed in HEADERS in the lib .pro is the case (as shown above), but they are not shown:
              https://imgur.com/a/NGxGoqv
              So whats wrong here?
              (sorry for the image link, the image url as image did not work)

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by J.Hilk
              #6

              @alexqt143
              try it with that last / removed from the includepath

              INCLUDEPATH += ../../include/libIncludes/

              to
              INCLUDEPATH += ../../include/libIncludes


              Irrelevant post, the headers don't even seem to be inside
              ../../include/libIncludes
              but rather in
              ../../include/dsesMasterLib


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              1 Reply Last reply
              0
              • A alexqt143

                @aha_1980
                listed in HEADERS in the lib .pro is the case (as shown above), but they are not shown:
                https://imgur.com/a/NGxGoqv
                So whats wrong here?
                (sorry for the image link, the image url as image did not work)

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @alexqt143 you need to provide the full (relative or absolute) path the the files. Creator is not searching for them, it just takes the paths as given.

                Qt has to stay free or it will die.

                1 Reply Last reply
                2
                • A Offline
                  A Offline
                  alexqt143
                  wrote on last edited by aha_1980
                  #8

                  yes,
                  HEADERS+= ../../include/dsesMasterLib/some.h

                  works, thanks!; I thought I had tested this yesterday already.

                  Pablo J. RoginaP 1 Reply Last reply
                  0
                  • A alexqt143

                    yes,
                    HEADERS+= ../../include/dsesMasterLib/some.h

                    works, thanks!; I thought I had tested this yesterday already.

                    Pablo J. RoginaP Offline
                    Pablo J. RoginaP Offline
                    Pablo J. Rogina
                    wrote on last edited by
                    #9

                    @alexqt143 said in qtcreator: includes not displayed:

                    works, thanks!

                    Please don't forget to mark your post as solved! Thanks.

                    Upvote the answer(s) that helped you solve the issue
                    Use "Topic Tools" button to mark your post as Solved
                    Add screenshots via postimage.org
                    Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                    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