I\'m developping an application for Blackberry 10 and I\'m using the Momentics IDE (BB native SDK).
I get the following error when I try to execute the code below. A
You need to register your pointer type like this
qRegisterMetaType<ClassA*>("ClassA*");
(source)
DataHandler is unknown type.
Q_PROPERTY docu says:
The type can be any type supported by QVariant
I'd try to encapsulate your DataHandler* in QVariant and make the property of type QVariant.
You could create the value containing your DataHandler pointer e.g like this:
const int DATA_HANDLER = QVariant::UserType +1;
//...
QVariant dataHandler( DATA_HANDLER, myDataHandlerPointer );