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. Qt Creator can't find header files
Forum Updated to NodeBB v4.3 + New Features

Qt Creator can't find header files

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 2.5k 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.
  • A Offline
    A Offline
    Andy B
    wrote on last edited by
    #1

    For some reason the editor cannot find some of my header files, even though they are part of the project. As a result, the parser can't find definitions of many symbols and the syntax highlighter leaves the symbols unhighlighted.

    eg:

    1. I installed Qt Creator 3.0.0 on Windows 7
    2. I downloaded the source code for Qt Creator 3.0.0.
    3. I opened the qtcreator.pro file
    4. I opened Qt\qt-creator-opensource-src-3.0.0\src\plugins\bookmarks\bookmark.h in the editor.
    5. The line #include <texteditor/itexteditor.h> is underlined. If I mouse hover over it, it says "texteditor/itexteditor.h: No such file or directory".

    I can navigate to itexteditor.h using the Projects treeview, so the file definitely exists in the correct place.

    Is there some way I can persuade Qt Creator to find all the headers in the project?

    BTW, I can build the project fine, so there's nothing wrong with the .pro file.

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

      Well, it works a lot better if I load the QBS project file instead of the QMake one. I'll see how I get on with that.

      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