[Interest] QQmlEngine: Illegal attempt to connect to PlatformShim(0xb9b2fb58) that is in a different thread than the QML engine QQmlApplicationEngine(0xa17e1494.
Jason H
jhihn at gmx.com
Thu Dec 1 22:45:30 CET 2016
I get that error when:
main.cpp:
PlatformShim *shim = PlatformShim::instance();
engine.rootContext()->setContextProperty(QStringLiteral("platformShim"), shim);
In a QML file:
Connections {
target: platformShim
onPushTokenReceived: {
pushToken = token
}
}
I thought Connections were ok across threads?
More information about the Interest
mailing list