This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Set complex types in self.setData in a python data engine

Tags: None
(comma "," separated)
mazter
Registered Member
Posts
28
Karma
0
OS
Hi,

I'm writing my first data engine in python, but I need to be able to return other data types than QString, like arrays that contains objects. In updateSourceEvent I'm setting those complete arrays like:

Code: Select all
self.setData(server,"players" , q.players)


but when looking with plasmaengineexplorer I can't see a "players" entry of the type QAarray or something. Is this possible ?

Thanks
mazter
Registered Member
Posts
28
Karma
0
OS
So it isn't possible to return an array of objects in one of the positions of the data array of the data engine ? :(


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]