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. Qt Creator doesn't see contents of included header file

Qt Creator doesn't see contents of included header file

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.5k Views 4 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.
  • michalosM Offline
    michalosM Offline
    michalos
    wrote on last edited by
    #1

    Hi,

    I'm building an app, that uses an external library.

    I have a header file, .lib and .dll files as well.

    The program compiles and works as intended.

    The problem is, that when writing code in QtCreator I cannot use auto-suggestions, and the IDE doesn't recognize any structs, functions or variables, that the header file contains.

    It did work a week ago.
    I do not recall changing any options in QtCreator.

    Uncle Google stays silent in this matter...
    What could be the problem?

    I recently updated the IDE to 4.4.0. Could this be related to a bug in the new version?

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

      Hi
      Any chance we could get the .h to play with ? (if possible)

      Yes, it could be a bug. But more tests are needed.

      If you create a normal GUI project and then add this file to the project, will it then "see it" ?

      1 Reply Last reply
      0
      • michalosM michalos

        Hi,

        I'm building an app, that uses an external library.

        I have a header file, .lib and .dll files as well.

        The program compiles and works as intended.

        The problem is, that when writing code in QtCreator I cannot use auto-suggestions, and the IDE doesn't recognize any structs, functions or variables, that the header file contains.

        It did work a week ago.
        I do not recall changing any options in QtCreator.

        Uncle Google stays silent in this matter...
        What could be the problem?

        I recently updated the IDE to 4.4.0. Could this be related to a bug in the new version?

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @michalos said in Qt Creator doesn't see contents of included header file:

        I recently updated the IDE to 4.4.0. Could this be related to a bug in the new version?

        you could install the previous version and check against it.
        Also you could try to delete the .user.pro file in the project dir where QtCreator caches it's settings (don't know if that would influences this in any way though).

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • michalosM Offline
          michalosM Offline
          michalos
          wrote on last edited by michalos
          #4

          I've tried creating a new project and, at first, all the functions were visible.
          But when I've opened the project again, QtCreator stoped seeing them.

          The only thing visible are the enums, that are in the header file.

          Deleting the .pro.user file didn't change anything.

          I will try to reinstall to the previous version of QtCreator.

          1 Reply Last reply
          0
          • michalosM Offline
            michalosM Offline
            michalos
            wrote on last edited by
            #5

            Converting the header file to UTF-8 encoding did the job.

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved