qt creator 安装后,运行自带的例子,总是通不过,请问啥原因?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了qt creator 安装后,运行自带的例子,总是通不过,请问啥原因?相关的知识,希望对你有一定的参考价值。
先安装了的qt library,然后对qt library进行了设置,编译等操作,并且将其bin目录设置为环境变量了
然后安装qt creator,安装完成后,运行它自带的一些例子,配置时出现如下提示:
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
运行时,出现错误提示:
d:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\maroon.pro:4: error: Unknown test function: qtHaveModule
d:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\maroon.pro:4: error: Unknown test function: qtHaveModule
d:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\maroon.pro:4: error: Unknown test function: qtHaveModule
D:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\main.cpp:40: In file included from ..\maroon\main.cpp:40:0:
D:\Program\Qt_Creator\Examples\Qt-5.3\quick\shared\shared.h:41: error: QGuiApplication: N
以上是关于qt creator 安装后,运行自带的例子,总是通不过,请问啥原因?的主要内容,如果未能解决你的问题,请参考以下文章
Qt creator 编译后没有生成debug和release文件夹
安装程序在 ubuntu 上安装 qt 和 qt creator 时崩溃
linux ubuntu QT 下载和安装(Qt Creator)