[PyQt] How to expose function accepting array of struct to D-Bus?
phil at riverbankcomputing.com
Tue Aug 7 21:25:00 BST 2012
On Tue, 7 Aug 2012 15:45:43 -0400, Evade Flow <evadeflow at gmail.com> wrote:
>> In theory you should be able to use QDBusArgument but I've not tested
>> it - I've always struggled to find test cases.
> def setPosition(self, pos):
> print("How can I call this function?")
If you change this to...
@pyqtSlot(float, float, float)
def setPosition(self, pos0, pos1, pos2):
print("How can I call this function?", pos0, pos1, pos2)
...then it works. So is the test case still valid?
More information about the PyQt