[PyQt] QAxBase.dynamicCall overloaded with list as arguments

Phil Thompson phil at riverbankcomputing.com
Tue Nov 20 12:32:18 GMT 2012


On Thu, 15 Nov 2012 21:36:46 +0100, Knacktus <knacktus at googlemail.com>
wrote:
> Hello everyone,
> 
> calling QAxBase.dynamicCall like this works:
> 
> my_comp.dynamicCall("MyMethod(const QString&, int, bool)", "test", 2,
> False)
> 
> however, using the overloaded call 
> (http://qt-project.org/doc/qt-4.8/qaxbase.html#dynamicCall-2) doesn't:
> 
> my_comp.dynamicCall("MyMethod(const QString&, int, bool)", ["test", 2, 
> False])
> 
> It gives an Error: ... Non-optional parameter missing
> 
> As I've got 18 args I need to use the overloaded call.

There is a problem where the list is not being updated with any output
arguments (which should be fixed in tonight's snapshot), but that doesn't
look like the problem here.

Phil


More information about the PyQt mailing list