Qt Creator can't find headers (says: “No such file or directory”)

前端 未结 6 1029
轻奢々
轻奢々 2021-02-05 10:11

How can I tell Qt Creator 2.4.1 (based on Qt 4.7.4 32-bit) where to look by default for header files?

When I open a C file in Qt Creator and say



        
6条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 10:41

    Standalone C++ files can be edited, but it is likely you will loose the functionality of #include's and autocomplete, among other thigns. I personally keep all my projects in Qt somehow, whether it is a simple GUI program that does one task, so I can debug it (gdb doesn't seem to like command line programs, atleast in my experience) or use a "Simple C++ command line" project for non-Qt dependent projects.

提交回复
热议问题