qt编译问题解决方法

    技术2022-05-19  23

    为了能够使用Qt的集成功能,你必须在visual studio中定义Qt的版本。为实现这个目标,到工具栏》选项菜单(Tools|Options)。在选项对话框内,导航到Qt Builds页面,并点击Add按钮。在出现的对话框内,输入Qt版本名称(比如 Qt-4.0.0),并指定Qt Build所在的路径(Qt安装路径),然后点击ok。如下图所示。

    如果路径设置不对,没有设置,或者路径存在大小写错误。比如,qt写成Qt。都会出现错误。

    点击Qt菜单》open solutions from .pro file.

    错误提示为:

    The following error occured:

    Cannot find qmake. Make sure you have specified a Qt version.

     

    点击菜单 File 》New Project 》 Qt Project

    点finish时,提示错误:

    Unable to find a Qt build!

    To solve the prolem specify a Qt build.


    最新回复(0)