Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

blackberry 10 Unresolved inclusion <QObject>

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???

like image 553
Bayan Avatar asked Dec 19 '12 13:12

Bayan


2 Answers

I'm using QNX Momentics Version 10.1.0

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.

For QObject, I found it under Platform > Qt Core

like image 195
Jonathan Lin Avatar answered Sep 24 '22 17:09

Jonathan Lin


I corrected the issue in following manner:

  1. Right Click on your project in Project Explorer.
  2. Goto Index.
  3. click Rebuild.
like image 41
Mayank Avatar answered Sep 21 '22 17:09

Mayank