[Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.
alan.ezust at gmail.com
Fri Nov 9 01:01:23 CET 2012
On Thu, Nov 8, 2012 at 1:19 PM, Mark <markg85 at gmail.com> wrote:
> Note: i cannot do qRegisterMetaType on the PathModel since it's class
> that inherits from a class that forbids copying the data (copy
> constructor stuff).
qmlRegisterType can register classes derived from QObject. Although you're
actually going to register a pointer to that type, rather than the class
Custom C++ types are registered using a template function:
char *uri, int versionMajor, int versionMinor, const char *qmlName)
registers the C++ type *T* with the QML system, and makes it available in
QML under the name *qmlName* in library *uri* version *
versionMajor.versionMinor*. The *qmlName* can be the same as the C++ type
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest