Unsolved QObject / QWidget to QJsonObject
-
Is there any built in function that will create a JSON version of a passed object which has been derived from QObject or QWidget?
-
No, how should this work?
-
What I'm looking for is a way of representing any object in a JSON fashion, ideally recursively drilling down into members and repeating the process for example:
{"geometry":{"x":0, "y":0, "width":100, "height":100}, ... }
If one doesn't already exist then I will write it.
-
Hi,
No there's not. You'll have to write it yourself.
IIRC, there was a thread about that in the Python sub forum.
-
@SGaist , thank you, its now on my list of things to do.