[Interest] Signal not making it to QML

Jason H jhihn at gmx.com
Thu Sep 1 22:10:14 CEST 2016



I figured it out. It helps to only have one instance of a singleton. *g*.


> Sent: Thursday, September 01, 2016 at 2:50 PM
> From: "Jason H" <jhihn at gmx.com>
> To: "Interests Qt" <interest at qt-project.org>
> Subject: [Interest] Signal not making it to QML
>
> 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?
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 



More information about the Interest mailing list