Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
mjmvisser last edited by
For example, a sequence of 4 frames:
could be represented as an Object with a "toString()" method that returns
and a "frameList" property that returns
I've tried adding this to the class:
@ Q_INVOKABLE const QString toString() const;@
But it has no effect. :-(
So, currently possible? Good Idea/Bad Idea?
I should mention that I'm somewhat familiar with the qtdeclarative module, so I'd be willing to take a stab at adding this feature myself if given a bit of direction on how to proceed (and if it's not a Bad Idea). I'm using Qt5 from github.
chrisadams last edited by
You can modify that to call the toString() function of object if it exists (eg, via QMetaObject::invokeMethod() after first doing a QMetaObject::property() lookup and determining if it's a function).