fatal error: QtGui/QApplication: No such file or directory

前端 未结 5 1461
無奈伤痛
無奈伤痛 2021-02-13 03:26

I\'m using Qt Creator, and this line is generated automatically by the Qt Creator:

#include

But, why am I getting this me

5条回答
  •  青春惊慌失措
    2021-02-13 04:08

    I had got same problem. From visual studio using Command Prompt(2010), I changed the path of prompt to where my Qt resides i.e. C:\Qt. There I set QTDIR environment variable.

    c:\Qt> setx QTDIR C:\Qt

    Then message was displayed:

    SUCCESS: Specified value was saved.

    Make sure VS is closed during this. When you reopen it, all headers will be detected.

    I hope my solution will help anyone someday. Cheers :)

提交回复
热议问题