[Qt-interest] How to use "byref" parameter in QT Script when call a C++ object function
Alex Wang
alxwang at gmail.com
Wed Jul 15 17:43:41 CEST 2009
Hi All,
My Question is about QT Script:
I have C++ obj posted to QT Script env.
Let's call it COBJ and it has a function call func(int count).
In the script
vat count;
COBJ.func(count).
What I want to do is let the func change the count value.
If I change the func to func(int & count) or func(int * pcount) script
will not works.
If I just keep func(int count) I never can change the value of count.
How can I solve this problem? I need to create some "byref" param in
C++ method for QT script.
Thanks.
--
Alex Wang
More information about the Qt-interest-old
mailing list