包含QGeoPositionInfo时出错 [英] Error Including QGeoPositionInfo

查看:150
本文介绍了包含QGeoPositionInfo时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Qt新手,

我已经在这个任务中使用GPS

I have been given this task where i should use GPS

所以使用GPS,我只做了这一行代码

so to use to GPS ,i only did this one line of code

 #include <QGeoPositionInfo>

并出现以下错误

In file included from ..\Project\mainwindow.cpp:3:
..\Project\/form.h:7:28: error: QGeoPositionInfo: No such file or directory

我如何解决这个问题?我怎么能得到这个文件?

how can i solve this issue ? how can i get this file ?

请注意,我已尝试重新安装Qt Creator ...

please note that i have tried re installing Qt Creator...

非常感谢...

推荐答案

QGeoPositionInfo Qt Mobility ,它是Qt的扩展。

QGeoPositionInfo is part of Qt Mobility, which is an extension to Qt.

这篇关于包含QGeoPositionInfo时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆