Qt Creator doesn't see contents of included header file



  • 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?


  • Qt Champions 2016

    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" ?


  • Moderators

    @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).



  • 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.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.