[Kde-pim] Grantleer OSX: Parser/QThread related errors

Lubomir I. Ivanov neolit123 at gmail.com
Wed Jul 29 11:52:47 BST 2015


hello,

we are using Grantlee in the Subsurface project.
the following errors appear when loading a HTML template on OSX only
with Qt5.4 and Grantlee 5.0.0 (reported by Robert):

Grantlee::Template t = m_engine->loadByName(someTemplate);

QObject: Cannot create children for a parent that is in a different thread.
(Parent is Grantlee::Parser(0x7fff5fbfb8f8), parent's thread is
QThread(0x104d2da60), current thread is QThread(0x11d4b9240)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is Grantlee::Parser(0x7fff5fbfb8f8), parent's thread is
QThread(0x104d2da60), current thread is QThread(0x11d4b9240)
QObject::setParent: Cannot set parent, new parent is in a different thread

then it says:
htmlContent = t->render(&c);

Don't know how to handle metatype
...

any idea how to solve the issue?

lubomir
--
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list