Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt Creator failing to find Qt headers in working cmake+Qt project

    Tools
    2
    5
    659
    Loading More Posts
    • 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.
    • R
      rmam last edited by

      I've installed Qt from Qt's online installer in Ubuntu 16.04, and I am using Qt Creator to work on a cmake+Qt project. The Qt project links to the Qt versions installed by Qt's online installer by setting the path to the Qt library through the CMAKE_PREFIX_PATH variable.

      Although the Qt Creator manages to build the project without any problem, Qt Creator is unable to find any Qt headers, listing every #include statement as "No such file or directory" and failing to run any autocompletion on Qt code.

      Does anyone know how to get Qt Creator to find Qt headers in a cmake+Qt project?

      1 Reply Last reply Reply Quote 0
      • R
        rmam last edited by

        Does anyone know how Qt Creator determines where are Qt's source code in a cmake project?

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          It's determined by the Kit used.

          What version of Qt Creator are you using ?

          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 Reply Quote 1
          • R
            rmam last edited by

            @SGaist I'm using Qt Creator 4.6.2.

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Did you check your kit for any errors ?

              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 Reply Quote 0
              • First post
                Last post