How can I call a pointer of an QObject in a QML File?

前端 未结 2 1427
离开以前
离开以前 2021-01-14 04:08

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

2条回答
  •  春和景丽
    2021-01-14 04:54

    You need to register your pointer type like this

    qRegisterMetaType("ClassA*");
    

    (source)

提交回复
热议问题