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" <jh...@gmx.com>
> To: "Interests Qt" <interest@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to