blackberry 10未解决的包含项< QObject> [英] blackberry 10 Unresolved inclusion <QObject>

查看:74
本文介绍了blackberry 10未解决的包含项< QObject>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用新版本的Blackberry(黑莓10).我试图将c + +代码与QML集成,但是我遇到了一些我认为与其他语言有关的问题.在.h文件Q_OBJECT中,Q_PROPERTY信号和插槽表明存在语法错误.并且在我尝试使用这种类型的QML文件中(例如,导入CustomTimer 1.0),我得到了未安装此问题模块"CustomTimer"的信息.如何解决这个问题??

I'm using the new version of Blackberry (Blackberry 10) . I'm trying to integrate c++ code with QML , but I faced some problems that I thinks connected to other . in the .h file Q_OBJECT , Q_PROPERTY signals and slots shows that there is syntax error . and in the QML file in which I try to use this type (i.e import CustomTimer 1.0 for example) I got this problem module "CustomTimer" is not installed . how to solve this issue???

推荐答案

我正在使用QNX Momentics版本10.1.0

I'm using QNX Momentics Version 10.1.0

我通过右键单击项目文件夹,然后选择Configure -> Add Library...,然后选择标准BlackBerry Platform库",解决了我的错误.选择要包括的相关库,然后单击Finish.

I resolved my errors by right-clicking on my project folder, then selecting Configure -> Add Library..., and then choose Standard BlackBerry Platform Library. Choose the relevant library to include and click Finish.

对于QObject,我在Platform > Qt Core

这篇关于blackberry 10未解决的包含项< QObject>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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