[Qt-interest] Problems calling methods from QtScript
Wilhelm
wilhelm.meier at fh-kl.de
Tue Feb 22 11:26:27 CET 2011
Hi all,
attached you find a test program with two problems calling methods from
qtscripts:
the qtscript gets an object named "test" of class "Test", then
1) calling the method Test::foo(Size) as test.foo("bla") should result
in an error, I suppose. But instead Test::foo(Size) is still invoked.
2) if there exists an overload Test::foo(QList<Size>), a call of
test.foo(size) with size of type Size should call Test::foo(Size), but
it gives an error of an ambigous overload.
Both case you can find in the attached minimal test case.
So, what do I miss here?
--
Wilhelm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tgz
Type: application/x-compressed-tar
Size: 1482 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110222/d6517c0a/attachment.bin
More information about the Qt-interest-old
mailing list