[Interest] Signal not making it to QML

Jason H jhihn at gmx.com
Thu Sep 1 20:50:29 CEST 2016


On Android,
engine.rootContext()->setContextProperty(QLatin1String("platformShim"), &shim);

//platformshim.h
signals:
	void pushTokenReceived(QString token);

//native JNI function calls
	PlatformShim::instance()->pushTokenReceived(token);

//in main.qml
Connections {
	target: platformShim
	onPushTokenReceived: {
		console.debug("pushTokenReceived:", token)
		pushToken.text = token
	}
}

I cannot figure out why the onPushTokenReceived never gets called?

Anyone have any ideas?



More information about the Interest mailing list