sergey_85
23rd November 2009, 09:51
Hi!
I try to use my c++ object in qtScript and I need to create c++ object in QtScript with several arg such as
var p = new Report("report1",9);
but Q_SCRIPT_DECLARE_QMETAOBJECT(Report, QObject*) has 1 params....
Is it possible to construct my own c++ object in qt script with sevral constuctor params&
Thanks.
I try to use my c++ object in qtScript and I need to create c++ object in QtScript with several arg such as
var p = new Report("report1",9);
but Q_SCRIPT_DECLARE_QMETAOBJECT(Report, QObject*) has 1 params....
Is it possible to construct my own c++ object in qt script with sevral constuctor params&
Thanks.